Skip to content

Commit

Permalink
data files added
Browse files Browse the repository at this point in the history
  • Loading branch information
Cpriyanshi07 committed Dec 13, 2022
1 parent 6d804e1 commit eb3ea16
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 1 deletion.
7 changes: 7 additions & 0 deletions terraform/msk/_override.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
locals {
vpc_id = "${data.terraform_remote_state.network.outputs.vpc_id}"
kafka_SG_id = "${data.terraform_remote_state.network.outputs.web_sg_id}"
subnet_ids = "${data.terraform_remote_state.network.outputs.public_subnet_ids}"
}


7 changes: 7 additions & 0 deletions terraform/msk/backend.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
terraform {
backend "s3" {
bucket = "bp-infra"
key = "elasticache/terraform.tfstate"
region = "us-west-2"
}
}
9 changes: 9 additions & 0 deletions terraform/msk/data_network.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
data "terraform_remote_state" "network" {
backend = "s3"

config = {
bucket = "bp-infra"
key = "network/terraform.tfstate"
region = "us-west-2"
}
}
2 changes: 1 addition & 1 deletion terraform/network_skeleton/backend.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
terraform {
backend "s3" {
bucket = "bp-step-tfstate"
bucket = "bp-infra"
key = "network/terraform.tfstate"
region = "us-west-2"
}
Expand Down

0 comments on commit eb3ea16

Please sign in to comment.