Signed-off-by: pmikus <pmikus@cisco.com>
Change-Id: I30af460b2c735f20ad832fb4563e26500b0efd9d
-resource "aws_subnet" "d" {
- vpc_id = aws_vpc.CSITVPC.id
- cidr_block = var.vpc_cidr_d
- availability_zone = var.avail_zone
- depends_on = [aws_vpc.CSITVPC, aws_vpc_ipv4_cidr_block_association.d]
-
- tags = {
- "Environment" = var.environment_name
- }
-}
-
resource "aws_subnet" "d" {
availability_zone = var.avail_zone
assign_ipv6_address_on_creation = false
resource "aws_subnet" "d" {
availability_zone = var.avail_zone
assign_ipv6_address_on_creation = false
+resource "aws_internet_gateway" "CSITGW" {
+ depends_on = [
+ aws_vpc.CSITVPC
+ ]
+ vpc_id = aws_vpc.CSITVPC.id
+
+ tags = {
+ "Environment" = var.environment_name
+ }
+}
+
# SSH keypair
# Temporary key for provisioning only
resource "tls_private_key" "CSITTLS" {
# SSH keypair
# Temporary key for provisioning only
resource "tls_private_key" "CSITTLS" {