Skip to content

Commit

Permalink
fix: updated vpc tag
Browse files Browse the repository at this point in the history
  • Loading branch information
mamrajyadav committed Jun 7, 2023
1 parent 1927c42 commit a2c7528
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion _example/single-account/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module "subnets" {

module "vpc-other" {
source = "clouddrove/vpc/aws"
version = "1.3.0"
version = "1.3.1"

name = "vpc"
environment = "test"
Expand Down
15 changes: 7 additions & 8 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ resource "aws_ec2_transit_gateway" "main" {
tags = module.labels.tags
}

data "aws_subnet_ids" "main" {
count = var.enable && var.vpc_attachement_create ? 1 : 0
vpc_id = var.vpc_id
}

#data "aws_subnet" "main" {
# id = var.subnet_id
#}

#Module : TRANSIT GATEWAY VPC ATTACHMENT
#Description : Get information on an EC2 Transit Gateway VPC Attachment.
Expand All @@ -54,9 +54,9 @@ resource "aws_ec2_transit_gateway_vpc_attachment" "main" {
}
)

depends_on = [
data.aws_subnet_ids.main
]
# depends_on = [
# data.aws_subnet.main
# ]
}

#Module : AWS RAM RESOURCE SHARE
Expand Down Expand Up @@ -109,7 +109,6 @@ resource "aws_route" "main" {
transit_gateway_id = var.use_existing_transit_gateway_id == false ? join("", aws_ec2_transit_gateway.main.*.id) : var.transit_gateway_id
depends_on = [
data.aws_route_tables.main,
data.aws_subnet_ids.main,
aws_ec2_transit_gateway_vpc_attachment.main,
]
}
Expand Down

0 comments on commit a2c7528

Please sign in to comment.