-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tweaked the naming of some of the resources.
- Loading branch information
Showing
3 changed files
with
22 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,51 @@ | ||
# Expects a single VPC in the account, and will fail if there are none or more than one. | ||
# https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/vpc | ||
data "aws_vpc" "default" {} | ||
data "aws_vpc" "vpc" {} | ||
|
||
# https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/subnets | ||
data "aws_subnets" "subnets" { | ||
filter { | ||
name = "vpc-id" | ||
values = [ | ||
data.aws_vpc.default.id, | ||
data.aws_vpc.vpc.id, | ||
] | ||
} | ||
} | ||
|
||
# https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/subnet | ||
data "aws_subnet" "subnet_int_a" { | ||
vpc_id = data.aws_vpc.default.id | ||
vpc_id = data.aws_vpc.vpc.id | ||
availability_zone = "${data.aws_region.current.name}a" | ||
} | ||
|
||
# https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/subnet | ||
data "aws_subnet" "subnet_int_b" { | ||
vpc_id = data.aws_vpc.default.id | ||
vpc_id = data.aws_vpc.vpc.id | ||
availability_zone = "${data.aws_region.current.name}b" | ||
} | ||
|
||
# https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/subnet | ||
data "aws_subnet" "subnet_int_c" { | ||
vpc_id = data.aws_vpc.default.id | ||
vpc_id = data.aws_vpc.vpc.id | ||
availability_zone = "${data.aws_region.current.name}c" | ||
} | ||
|
||
# https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/route_table | ||
data "aws_route_table" "route_table" { | ||
vpc_id = data.aws_vpc.default.id | ||
vpc_id = data.aws_vpc.vpc.id | ||
} | ||
|
||
# https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/internet_gateway | ||
data "aws_internet_gateway" "default" { | ||
data "aws_internet_gateway" "igw" { | ||
filter { | ||
name = "attachment.vpc-id" | ||
values = [ | ||
data.aws_vpc.default.id, | ||
data.aws_vpc.vpc.id, | ||
] | ||
} | ||
} | ||
|
||
# https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/network_acls | ||
data "aws_network_acls" "default" { | ||
vpc_id = data.aws_vpc.default.id | ||
data "aws_network_acls" "nacl" { | ||
vpc_id = data.aws_vpc.vpc.id | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters