diff options
-rwxr-xr-x | terraform/.terraform/plugins/linux_amd64/lock.json | 3 | ||||
-rwxr-xr-x | terraform/.terraform/plugins/linux_amd64/terraform-provider-aws_v2.9.0_x4 | bin | 0 -> 140368096 bytes | |||
-rw-r--r-- | terraform/main.tf | 4 | ||||
-rw-r--r-- | terraform/terraform.tfstate.backup | 230 |
4 files changed, 235 insertions, 2 deletions
diff --git a/terraform/.terraform/plugins/linux_amd64/lock.json b/terraform/.terraform/plugins/linux_amd64/lock.json new file mode 100755 index 0000000..e7023c3 --- /dev/null +++ b/terraform/.terraform/plugins/linux_amd64/lock.json @@ -0,0 +1,3 @@ +{ + "aws": "87f2c091e0aeee8c4680cf58d5f0f8005cf3079a212997a9ab5b2c2d2769bfb3" +}
\ No newline at end of file diff --git a/terraform/.terraform/plugins/linux_amd64/terraform-provider-aws_v2.9.0_x4 b/terraform/.terraform/plugins/linux_amd64/terraform-provider-aws_v2.9.0_x4 Binary files differnew file mode 100755 index 0000000..d187655 --- /dev/null +++ b/terraform/.terraform/plugins/linux_amd64/terraform-provider-aws_v2.9.0_x4 diff --git a/terraform/main.tf b/terraform/main.tf index e598ad0..567ba7d 100644 --- a/terraform/main.tf +++ b/terraform/main.tf @@ -16,7 +16,7 @@ resource "aws_vpc" "sensyne_demo_vpc" { data "aws_availability_zones" "available" {} resource "aws_subnet" "sensyne_demo_subnet" { - count = 2 + count = 3 availability_zone = "${data.aws_availability_zones.available.names[count.index]}" cidr_block = "10.0.${count.index}.0/24" @@ -45,7 +45,7 @@ resource "aws_route_table" "sensyne_demo_route_table" { } resource "aws_route_table_association" "sensyne_demo_route_table_ass" { - count = 2 + count = 3 subnet_id = "${aws_subnet.sensyne_demo_subnet.*.id[count.index]}" route_table_id = "${aws_route_table.sensyne_demo_route_table.id}" diff --git a/terraform/terraform.tfstate.backup b/terraform/terraform.tfstate.backup new file mode 100644 index 0000000..b756843 --- /dev/null +++ b/terraform/terraform.tfstate.backup @@ -0,0 +1,230 @@ +{ + "version": 3, + "terraform_version": "0.11.11", + "serial": 2, + "lineage": "a27a1d66-bd98-5e4e-cfad-cd96f3f3dabc", + "modules": [ + { + "path": [ + "root" + ], + "outputs": {}, + "resources": { + "aws_internet_gateway.sensyne_demo_aws_igw": { + "type": "aws_internet_gateway", + "depends_on": [ + "aws_vpc.sensyne_demo_vpc" + ], + "primary": { + "id": "igw-072d387de8707b84b", + "attributes": { + "id": "igw-072d387de8707b84b", + "owner_id": "375964158157", + "tags.%": "1", + "tags.Name": "sensyne_demo_igw", + "vpc_id": "vpc-04518d2c0e2421366" + }, + "meta": {}, + "tainted": false + }, + "deposed": [], + "provider": "provider.aws" + }, + "aws_route_table.sensyne_demo_route_table": { + "type": "aws_route_table", + "depends_on": [ + "aws_internet_gateway.sensyne_demo_aws_igw", + "aws_vpc.sensyne_demo_vpc" + ], + "primary": { + "id": "rtb-0c828921b2d4d85c0", + "attributes": { + "id": "rtb-0c828921b2d4d85c0", + "owner_id": "375964158157", + "propagating_vgws.#": "0", + "route.#": "1", + "route.2796936864.cidr_block": "0.0.0.0/0", + "route.2796936864.egress_only_gateway_id": "", + "route.2796936864.gateway_id": "igw-072d387de8707b84b", + "route.2796936864.instance_id": "", + "route.2796936864.ipv6_cidr_block": "", + "route.2796936864.nat_gateway_id": "", + "route.2796936864.network_interface_id": "", + "route.2796936864.transit_gateway_id": "", + "route.2796936864.vpc_peering_connection_id": "", + "tags.%": "0", + "vpc_id": "vpc-04518d2c0e2421366" + }, + "meta": {}, + "tainted": false + }, + "deposed": [], + "provider": "provider.aws" + }, + "aws_route_table_association.sensyne_demo_route_table_ass.0": { + "type": "aws_route_table_association", + "depends_on": [ + "aws_route_table.sensyne_demo_route_table", + "aws_subnet.sensyne_demo_subnet.*" + ], + "primary": { + "id": "rtbassoc-084742884baa08f02", + "attributes": { + "id": "rtbassoc-084742884baa08f02", + "route_table_id": "rtb-0c828921b2d4d85c0", + "subnet_id": "subnet-04686c4f0f94f9fa9" + }, + "meta": {}, + "tainted": false + }, + "deposed": [], + "provider": "provider.aws" + }, + "aws_route_table_association.sensyne_demo_route_table_ass.1": { + "type": "aws_route_table_association", + "depends_on": [ + "aws_route_table.sensyne_demo_route_table", + "aws_subnet.sensyne_demo_subnet.*" + ], + "primary": { + "id": "rtbassoc-07ed481a00651295f", + "attributes": { + "id": "rtbassoc-07ed481a00651295f", + "route_table_id": "rtb-0c828921b2d4d85c0", + "subnet_id": "subnet-092000fedec469965" + }, + "meta": {}, + "tainted": false + }, + "deposed": [], + "provider": "provider.aws" + }, + "aws_subnet.sensyne_demo_subnet.0": { + "type": "aws_subnet", + "depends_on": [ + "aws_vpc.sensyne_demo_vpc", + "data.aws_availability_zones.available" + ], + "primary": { + "id": "subnet-04686c4f0f94f9fa9", + "attributes": { + "arn": "arn:aws:ec2:eu-west-2:375964158157:subnet/subnet-04686c4f0f94f9fa9", + "assign_ipv6_address_on_creation": "false", + "availability_zone": "eu-west-2a", + "availability_zone_id": "euw2-az2", + "cidr_block": "10.0.0.0/24", + "id": "subnet-04686c4f0f94f9fa9", + "ipv6_cidr_block": "", + "ipv6_cidr_block_association_id": "", + "map_public_ip_on_launch": "false", + "owner_id": "375964158157", + "tags.%": "1", + "tags.Name": "sensyne_demo_subnet", + "vpc_id": "vpc-04518d2c0e2421366" + }, + "meta": { + "e2bfb730-ecaa-11e6-8f88-34363bc7c4c0": { + "create": 600000000000, + "delete": 600000000000 + }, + "schema_version": "1" + }, + "tainted": false + }, + "deposed": [], + "provider": "provider.aws" + }, + "aws_subnet.sensyne_demo_subnet.1": { + "type": "aws_subnet", + "depends_on": [ + "aws_vpc.sensyne_demo_vpc", + "data.aws_availability_zones.available" + ], + "primary": { + "id": "subnet-092000fedec469965", + "attributes": { + "arn": "arn:aws:ec2:eu-west-2:375964158157:subnet/subnet-092000fedec469965", + "assign_ipv6_address_on_creation": "false", + "availability_zone": "eu-west-2b", + "availability_zone_id": "euw2-az3", + "cidr_block": "10.0.1.0/24", + "id": "subnet-092000fedec469965", + "ipv6_cidr_block": "", + "ipv6_cidr_block_association_id": "", + "map_public_ip_on_launch": "false", + "owner_id": "375964158157", + "tags.%": "1", + "tags.Name": "sensyne_demo_subnet", + "vpc_id": "vpc-04518d2c0e2421366" + }, + "meta": { + "e2bfb730-ecaa-11e6-8f88-34363bc7c4c0": { + "create": 600000000000, + "delete": 600000000000 + }, + "schema_version": "1" + }, + "tainted": false + }, + "deposed": [], + "provider": "provider.aws" + }, + "aws_vpc.sensyne_demo_vpc": { + "type": "aws_vpc", + "depends_on": [], + "primary": { + "id": "vpc-04518d2c0e2421366", + "attributes": { + "arn": "arn:aws:ec2:eu-west-2:375964158157:vpc/vpc-04518d2c0e2421366", + "assign_generated_ipv6_cidr_block": "false", + "cidr_block": "10.0.0.0/16", + "default_network_acl_id": "acl-0f296e432a0dc3c6e", + "default_route_table_id": "rtb-0b6e63cab8b314110", + "default_security_group_id": "sg-0e081e80cdc3c1498", + "dhcp_options_id": "dopt-c285f9ab", + "enable_dns_hostnames": "true", + "enable_dns_support": "true", + "id": "vpc-04518d2c0e2421366", + "instance_tenancy": "default", + "ipv6_association_id": "", + "ipv6_cidr_block": "", + "main_route_table_id": "rtb-0b6e63cab8b314110", + "owner_id": "375964158157", + "tags.%": "1", + "tags.Name": "sensyne_demo" + }, + "meta": { + "schema_version": "1" + }, + "tainted": false + }, + "deposed": [], + "provider": "provider.aws" + }, + "data.aws_availability_zones.available": { + "type": "aws_availability_zones", + "depends_on": [], + "primary": { + "id": "2019-05-09 09:43:34.620858829 +0000 UTC", + "attributes": { + "id": "2019-05-09 09:43:34.620858829 +0000 UTC", + "names.#": "3", + "names.0": "eu-west-2a", + "names.1": "eu-west-2b", + "names.2": "eu-west-2c", + "zone_ids.#": "3", + "zone_ids.0": "euw2-az2", + "zone_ids.1": "euw2-az3", + "zone_ids.2": "euw2-az1" + }, + "meta": {}, + "tainted": false + }, + "deposed": [], + "provider": "provider.aws" + } + }, + "depends_on": [] + } + ] +} |