diff --git a/tests/integration/update_cluster/additional_cidr/kubernetes.tf b/tests/integration/update_cluster/additional_cidr/kubernetes.tf index 83d96177923d4..e8a2c6ff9ddfb 100644 --- a/tests/integration/update_cluster/additional_cidr/kubernetes.tf +++ b/tests/integration/update_cluster/additional_cidr/kubernetes.tf @@ -474,7 +474,7 @@ resource "aws_launch_configuration" "nodes-additionalcidr-example-com" { enable_monitoring = false } -resource "aws_route" "0-0-0-0--0" { +resource "aws_route" "route-0-0-0-0--0" { route_table_id = "${aws_route_table.additionalcidr-example-com.id}" destination_cidr_block = "0.0.0.0/0" gateway_id = "${aws_internet_gateway.additionalcidr-example-com.id}" @@ -708,7 +708,7 @@ resource "aws_vpc_dhcp_options_association" "additionalcidr-example-com" { dhcp_options_id = "${aws_vpc_dhcp_options.additionalcidr-example-com.id}" } -resource "aws_vpc_ipv4_cidr_block_association" "10-1-0-0--16" { +resource "aws_vpc_ipv4_cidr_block_association" "cidr-10-1-0-0--16" { vpc_id = "${aws_vpc.additionalcidr-example-com.id}" cidr_block = "10.1.0.0/16" } diff --git a/tests/integration/update_cluster/api_elb_cross_zone/kubernetes.tf b/tests/integration/update_cluster/api_elb_cross_zone/kubernetes.tf index 89d87beb0a50c..e8695c971f905 100644 --- a/tests/integration/update_cluster/api_elb_cross_zone/kubernetes.tf +++ b/tests/integration/update_cluster/api_elb_cross_zone/kubernetes.tf @@ -345,7 +345,7 @@ resource "aws_launch_configuration" "nodes-crosszone-example-com" { enable_monitoring = true } -resource "aws_route" "0-0-0-0--0" { +resource "aws_route" "route-0-0-0-0--0" { route_table_id = "${aws_route_table.crosszone-example-com.id}" destination_cidr_block = "0.0.0.0/0" gateway_id = "${aws_internet_gateway.crosszone-example-com.id}" diff --git a/tests/integration/update_cluster/bastionadditional_user-data/kubernetes.tf b/tests/integration/update_cluster/bastionadditional_user-data/kubernetes.tf index 069975a765235..600005f8f4c0d 100644 --- a/tests/integration/update_cluster/bastionadditional_user-data/kubernetes.tf +++ b/tests/integration/update_cluster/bastionadditional_user-data/kubernetes.tf @@ -474,13 +474,13 @@ resource "aws_nat_gateway" "us-test-1a-bastionuserdata-example-com" { } } -resource "aws_route" "0-0-0-0--0" { +resource "aws_route" "route-0-0-0-0--0" { route_table_id = "${aws_route_table.bastionuserdata-example-com.id}" destination_cidr_block = "0.0.0.0/0" gateway_id = "${aws_internet_gateway.bastionuserdata-example-com.id}" } -resource "aws_route" "private-us-test-1a-0-0-0-0--0" { +resource "aws_route" "route-private-us-test-1a-0-0-0-0--0" { route_table_id = "${aws_route_table.private-us-test-1a-bastionuserdata-example-com.id}" destination_cidr_block = "0.0.0.0/0" nat_gateway_id = "${aws_nat_gateway.us-test-1a-bastionuserdata-example-com.id}" diff --git a/tests/integration/update_cluster/complex/kubernetes.tf b/tests/integration/update_cluster/complex/kubernetes.tf index cbe26fc29f7a0..55e45a771cb39 100644 --- a/tests/integration/update_cluster/complex/kubernetes.tf +++ b/tests/integration/update_cluster/complex/kubernetes.tf @@ -352,7 +352,7 @@ resource "aws_launch_configuration" "nodes-complex-example-com" { enable_monitoring = true } -resource "aws_route" "0-0-0-0--0" { +resource "aws_route" "route-0-0-0-0--0" { route_table_id = "${aws_route_table.complex-example-com.id}" destination_cidr_block = "0.0.0.0/0" gateway_id = "${aws_internet_gateway.complex-example-com.id}" diff --git a/tests/integration/update_cluster/existing_iam/kubernetes.tf b/tests/integration/update_cluster/existing_iam/kubernetes.tf index 460d42b539b66..cffe7cb76686e 100644 --- a/tests/integration/update_cluster/existing_iam/kubernetes.tf +++ b/tests/integration/update_cluster/existing_iam/kubernetes.tf @@ -362,7 +362,7 @@ resource "aws_launch_configuration" "nodes-existing-iam-example-com" { enable_monitoring = false } -resource "aws_route" "0-0-0-0--0" { +resource "aws_route" "route-0-0-0-0--0" { route_table_id = "${aws_route_table.existing-iam-example-com.id}" destination_cidr_block = "0.0.0.0/0" gateway_id = "${aws_internet_gateway.existing-iam-example-com.id}" diff --git a/tests/integration/update_cluster/existing_iam_cloudformation/kubernetes.tf b/tests/integration/update_cluster/existing_iam_cloudformation/kubernetes.tf index 2e6ee9bda2506..ba16e8b80c8ea 100644 --- a/tests/integration/update_cluster/existing_iam_cloudformation/kubernetes.tf +++ b/tests/integration/update_cluster/existing_iam_cloudformation/kubernetes.tf @@ -311,25 +311,25 @@ resource "aws_nat_gateway" "us-west-2c-k8s-iam-us-west-2-td-priv" { subnet_id = "${aws_subnet.utility-us-west-2c-k8s-iam-us-west-2-td-priv.id}" } -resource "aws_route" "0-0-0-0--0" { +resource "aws_route" "route-0-0-0-0--0" { route_table_id = "${aws_route_table.k8s-iam-us-west-2-td-priv.id}" destination_cidr_block = "0.0.0.0/0" gateway_id = "${aws_internet_gateway.k8s-iam-us-west-2-td-priv.id}" } -resource "aws_route" "private-us-west-2a-0-0-0-0--0" { +resource "aws_route" "route-private-us-west-2a-0-0-0-0--0" { route_table_id = "${aws_route_table.private-us-west-2a-k8s-iam-us-west-2-td-priv.id}" destination_cidr_block = "0.0.0.0/0" nat_gateway_id = "${aws_nat_gateway.us-west-2a-k8s-iam-us-west-2-td-priv.id}" } -resource "aws_route" "private-us-west-2b-0-0-0-0--0" { +resource "aws_route" "route-private-us-west-2b-0-0-0-0--0" { route_table_id = "${aws_route_table.private-us-west-2b-k8s-iam-us-west-2-td-priv.id}" destination_cidr_block = "0.0.0.0/0" nat_gateway_id = "${aws_nat_gateway.us-west-2b-k8s-iam-us-west-2-td-priv.id}" } -resource "aws_route" "private-us-west-2c-0-0-0-0--0" { +resource "aws_route" "route-private-us-west-2c-0-0-0-0--0" { route_table_id = "${aws_route_table.private-us-west-2c-k8s-iam-us-west-2-td-priv.id}" destination_cidr_block = "0.0.0.0/0" nat_gateway_id = "${aws_nat_gateway.us-west-2c-k8s-iam-us-west-2-td-priv.id}" diff --git a/tests/integration/update_cluster/existing_sg/kubernetes.tf b/tests/integration/update_cluster/existing_sg/kubernetes.tf index 05b82006556b7..de5b256dba2d8 100644 --- a/tests/integration/update_cluster/existing_sg/kubernetes.tf +++ b/tests/integration/update_cluster/existing_sg/kubernetes.tf @@ -520,7 +520,7 @@ resource "aws_launch_configuration" "nodes-existingsg-example-com" { enable_monitoring = false } -resource "aws_route" "0-0-0-0--0" { +resource "aws_route" "route-0-0-0-0--0" { route_table_id = "${aws_route_table.existingsg-example-com.id}" destination_cidr_block = "0.0.0.0/0" gateway_id = "${aws_internet_gateway.existingsg-example-com.id}" diff --git a/tests/integration/update_cluster/externallb/kubernetes.tf b/tests/integration/update_cluster/externallb/kubernetes.tf index ad4240650d2e3..edc8c5211fdf0 100644 --- a/tests/integration/update_cluster/externallb/kubernetes.tf +++ b/tests/integration/update_cluster/externallb/kubernetes.tf @@ -293,7 +293,7 @@ resource "aws_launch_configuration" "nodes-externallb-example-com" { enable_monitoring = false } -resource "aws_route" "0-0-0-0--0" { +resource "aws_route" "route-0-0-0-0--0" { route_table_id = "${aws_route_table.externallb-example-com.id}" destination_cidr_block = "0.0.0.0/0" gateway_id = "${aws_internet_gateway.externallb-example-com.id}" diff --git a/tests/integration/update_cluster/ha/kubernetes.tf b/tests/integration/update_cluster/ha/kubernetes.tf index 45b153af4e05b..08a7972629381 100644 --- a/tests/integration/update_cluster/ha/kubernetes.tf +++ b/tests/integration/update_cluster/ha/kubernetes.tf @@ -474,7 +474,7 @@ resource "aws_launch_configuration" "nodes-ha-example-com" { enable_monitoring = false } -resource "aws_route" "0-0-0-0--0" { +resource "aws_route" "route-0-0-0-0--0" { route_table_id = "${aws_route_table.ha-example-com.id}" destination_cidr_block = "0.0.0.0/0" gateway_id = "${aws_internet_gateway.ha-example-com.id}" diff --git a/tests/integration/update_cluster/lifecycle_phases/network-kubernetes.tf b/tests/integration/update_cluster/lifecycle_phases/network-kubernetes.tf index ff541ae9178af..e6bed7d450f40 100644 --- a/tests/integration/update_cluster/lifecycle_phases/network-kubernetes.tf +++ b/tests/integration/update_cluster/lifecycle_phases/network-kubernetes.tf @@ -76,13 +76,13 @@ resource "aws_nat_gateway" "us-test-1a-lifecyclephases-example-com" { } } -resource "aws_route" "0-0-0-0--0" { +resource "aws_route" "route-0-0-0-0--0" { route_table_id = "${aws_route_table.lifecyclephases-example-com.id}" destination_cidr_block = "0.0.0.0/0" gateway_id = "${aws_internet_gateway.lifecyclephases-example-com.id}" } -resource "aws_route" "private-us-test-1a-0-0-0-0--0" { +resource "aws_route" "route-private-us-test-1a-0-0-0-0--0" { route_table_id = "${aws_route_table.private-us-test-1a-lifecyclephases-example-com.id}" destination_cidr_block = "0.0.0.0/0" nat_gateway_id = "${aws_nat_gateway.us-test-1a-lifecyclephases-example-com.id}" diff --git a/tests/integration/update_cluster/minimal-141/kubernetes.tf b/tests/integration/update_cluster/minimal-141/kubernetes.tf index 5890bb806ef3c..3fb6f0e2140a8 100644 --- a/tests/integration/update_cluster/minimal-141/kubernetes.tf +++ b/tests/integration/update_cluster/minimal-141/kubernetes.tf @@ -278,7 +278,7 @@ resource "aws_launch_configuration" "nodes-minimal-141-example-com" { enable_monitoring = false } -resource "aws_route" "0-0-0-0--0" { +resource "aws_route" "route-0-0-0-0--0" { route_table_id = "${aws_route_table.minimal-141-example-com.id}" destination_cidr_block = "0.0.0.0/0" gateway_id = "${aws_internet_gateway.minimal-141-example-com.id}" diff --git a/tests/integration/update_cluster/minimal/kubernetes.tf b/tests/integration/update_cluster/minimal/kubernetes.tf index 5be341f34b9ce..1320a7d1e5eda 100644 --- a/tests/integration/update_cluster/minimal/kubernetes.tf +++ b/tests/integration/update_cluster/minimal/kubernetes.tf @@ -278,7 +278,7 @@ resource "aws_launch_configuration" "nodes-minimal-example-com" { enable_monitoring = false } -resource "aws_route" "0-0-0-0--0" { +resource "aws_route" "route-0-0-0-0--0" { route_table_id = "${aws_route_table.minimal-example-com.id}" destination_cidr_block = "0.0.0.0/0" gateway_id = "${aws_internet_gateway.minimal-example-com.id}" diff --git a/tests/integration/update_cluster/mixed_instances/kubernetes.tf b/tests/integration/update_cluster/mixed_instances/kubernetes.tf index 08c5e95a2057b..79d5083f261bd 100644 --- a/tests/integration/update_cluster/mixed_instances/kubernetes.tf +++ b/tests/integration/update_cluster/mixed_instances/kubernetes.tf @@ -512,7 +512,7 @@ resource "aws_launch_template" "nodes-mixedinstances-example-com" { user_data = "${file("${path.module}/data/aws_launch_template_nodes.mixedinstances.example.com_user_data")}" } -resource "aws_route" "0-0-0-0--0" { +resource "aws_route" "route-0-0-0-0--0" { route_table_id = "${aws_route_table.mixedinstances-example-com.id}" destination_cidr_block = "0.0.0.0/0" gateway_id = "${aws_internet_gateway.mixedinstances-example-com.id}" diff --git a/tests/integration/update_cluster/mixed_instances_spot/kubernetes.tf b/tests/integration/update_cluster/mixed_instances_spot/kubernetes.tf index 3d1d60353df77..81521af8be4e9 100644 --- a/tests/integration/update_cluster/mixed_instances_spot/kubernetes.tf +++ b/tests/integration/update_cluster/mixed_instances_spot/kubernetes.tf @@ -512,7 +512,7 @@ resource "aws_launch_template" "nodes-mixedinstances-example-com" { user_data = "${file("${path.module}/data/aws_launch_template_nodes.mixedinstances.example.com_user_data")}" } -resource "aws_route" "0-0-0-0--0" { +resource "aws_route" "route-0-0-0-0--0" { route_table_id = "${aws_route_table.mixedinstances-example-com.id}" destination_cidr_block = "0.0.0.0/0" gateway_id = "${aws_internet_gateway.mixedinstances-example-com.id}" diff --git a/tests/integration/update_cluster/nosshkey/kubernetes.tf b/tests/integration/update_cluster/nosshkey/kubernetes.tf index 7e3b89b463a4a..145aac606bc08 100644 --- a/tests/integration/update_cluster/nosshkey/kubernetes.tf +++ b/tests/integration/update_cluster/nosshkey/kubernetes.tf @@ -338,7 +338,7 @@ resource "aws_launch_configuration" "nodes-nosshkey-example-com" { enable_monitoring = true } -resource "aws_route" "0-0-0-0--0" { +resource "aws_route" "route-0-0-0-0--0" { route_table_id = "${aws_route_table.nosshkey-example-com.id}" destination_cidr_block = "0.0.0.0/0" gateway_id = "${aws_internet_gateway.nosshkey-example-com.id}" diff --git a/tests/integration/update_cluster/privatecalico/kubernetes.tf b/tests/integration/update_cluster/privatecalico/kubernetes.tf index baad6c2ef71fd..f06b6a15c1246 100644 --- a/tests/integration/update_cluster/privatecalico/kubernetes.tf +++ b/tests/integration/update_cluster/privatecalico/kubernetes.tf @@ -474,13 +474,13 @@ resource "aws_nat_gateway" "us-test-1a-privatecalico-example-com" { } } -resource "aws_route" "0-0-0-0--0" { +resource "aws_route" "route-0-0-0-0--0" { route_table_id = "${aws_route_table.privatecalico-example-com.id}" destination_cidr_block = "0.0.0.0/0" gateway_id = "${aws_internet_gateway.privatecalico-example-com.id}" } -resource "aws_route" "private-us-test-1a-0-0-0-0--0" { +resource "aws_route" "route-private-us-test-1a-0-0-0-0--0" { route_table_id = "${aws_route_table.private-us-test-1a-privatecalico-example-com.id}" destination_cidr_block = "0.0.0.0/0" nat_gateway_id = "${aws_nat_gateway.us-test-1a-privatecalico-example-com.id}" diff --git a/tests/integration/update_cluster/privatecanal/kubernetes.tf b/tests/integration/update_cluster/privatecanal/kubernetes.tf index bf833b844f5dc..0d9482dc372a6 100644 --- a/tests/integration/update_cluster/privatecanal/kubernetes.tf +++ b/tests/integration/update_cluster/privatecanal/kubernetes.tf @@ -474,13 +474,13 @@ resource "aws_nat_gateway" "us-test-1a-privatecanal-example-com" { } } -resource "aws_route" "0-0-0-0--0" { +resource "aws_route" "route-0-0-0-0--0" { route_table_id = "${aws_route_table.privatecanal-example-com.id}" destination_cidr_block = "0.0.0.0/0" gateway_id = "${aws_internet_gateway.privatecanal-example-com.id}" } -resource "aws_route" "private-us-test-1a-0-0-0-0--0" { +resource "aws_route" "route-private-us-test-1a-0-0-0-0--0" { route_table_id = "${aws_route_table.private-us-test-1a-privatecanal-example-com.id}" destination_cidr_block = "0.0.0.0/0" nat_gateway_id = "${aws_nat_gateway.us-test-1a-privatecanal-example-com.id}" diff --git a/tests/integration/update_cluster/privatedns1/kubernetes.tf b/tests/integration/update_cluster/privatedns1/kubernetes.tf index c6e933fc2e55f..d6799bb7c6ade 100644 --- a/tests/integration/update_cluster/privatedns1/kubernetes.tf +++ b/tests/integration/update_cluster/privatedns1/kubernetes.tf @@ -474,13 +474,13 @@ resource "aws_nat_gateway" "us-test-1a-privatedns1-example-com" { } } -resource "aws_route" "0-0-0-0--0" { +resource "aws_route" "route-0-0-0-0--0" { route_table_id = "${aws_route_table.privatedns1-example-com.id}" destination_cidr_block = "0.0.0.0/0" gateway_id = "${aws_internet_gateway.privatedns1-example-com.id}" } -resource "aws_route" "private-us-test-1a-0-0-0-0--0" { +resource "aws_route" "route-private-us-test-1a-0-0-0-0--0" { route_table_id = "${aws_route_table.private-us-test-1a-privatedns1-example-com.id}" destination_cidr_block = "0.0.0.0/0" nat_gateway_id = "${aws_nat_gateway.us-test-1a-privatedns1-example-com.id}" diff --git a/tests/integration/update_cluster/privatedns2/kubernetes.tf b/tests/integration/update_cluster/privatedns2/kubernetes.tf index 281c6fabc180c..b1844c2eca4db 100644 --- a/tests/integration/update_cluster/privatedns2/kubernetes.tf +++ b/tests/integration/update_cluster/privatedns2/kubernetes.tf @@ -459,13 +459,13 @@ resource "aws_nat_gateway" "us-test-1a-privatedns2-example-com" { } } -resource "aws_route" "0-0-0-0--0" { +resource "aws_route" "route-0-0-0-0--0" { route_table_id = "${aws_route_table.privatedns2-example-com.id}" destination_cidr_block = "0.0.0.0/0" gateway_id = "igw-1" } -resource "aws_route" "private-us-test-1a-0-0-0-0--0" { +resource "aws_route" "route-private-us-test-1a-0-0-0-0--0" { route_table_id = "${aws_route_table.private-us-test-1a-privatedns2-example-com.id}" destination_cidr_block = "0.0.0.0/0" nat_gateway_id = "${aws_nat_gateway.us-test-1a-privatedns2-example-com.id}" diff --git a/tests/integration/update_cluster/privateflannel/kubernetes.tf b/tests/integration/update_cluster/privateflannel/kubernetes.tf index 868d9fafe344b..07bffa600ec3a 100644 --- a/tests/integration/update_cluster/privateflannel/kubernetes.tf +++ b/tests/integration/update_cluster/privateflannel/kubernetes.tf @@ -474,13 +474,13 @@ resource "aws_nat_gateway" "us-test-1a-privateflannel-example-com" { } } -resource "aws_route" "0-0-0-0--0" { +resource "aws_route" "route-0-0-0-0--0" { route_table_id = "${aws_route_table.privateflannel-example-com.id}" destination_cidr_block = "0.0.0.0/0" gateway_id = "${aws_internet_gateway.privateflannel-example-com.id}" } -resource "aws_route" "private-us-test-1a-0-0-0-0--0" { +resource "aws_route" "route-private-us-test-1a-0-0-0-0--0" { route_table_id = "${aws_route_table.private-us-test-1a-privateflannel-example-com.id}" destination_cidr_block = "0.0.0.0/0" nat_gateway_id = "${aws_nat_gateway.us-test-1a-privateflannel-example-com.id}" diff --git a/tests/integration/update_cluster/privatekopeio/kubernetes.tf b/tests/integration/update_cluster/privatekopeio/kubernetes.tf index aad4222bfa1ba..6eb839395b350 100644 --- a/tests/integration/update_cluster/privatekopeio/kubernetes.tf +++ b/tests/integration/update_cluster/privatekopeio/kubernetes.tf @@ -468,19 +468,19 @@ resource "aws_launch_configuration" "nodes-privatekopeio-example-com" { enable_monitoring = false } -resource "aws_route" "0-0-0-0--0" { +resource "aws_route" "route-0-0-0-0--0" { route_table_id = "${aws_route_table.privatekopeio-example-com.id}" destination_cidr_block = "0.0.0.0/0" gateway_id = "${aws_internet_gateway.privatekopeio-example-com.id}" } -resource "aws_route" "private-us-test-1a-0-0-0-0--0" { +resource "aws_route" "route-private-us-test-1a-0-0-0-0--0" { route_table_id = "${aws_route_table.private-us-test-1a-privatekopeio-example-com.id}" destination_cidr_block = "0.0.0.0/0" nat_gateway_id = "nat-a2345678" } -resource "aws_route" "private-us-test-1b-0-0-0-0--0" { +resource "aws_route" "route-private-us-test-1b-0-0-0-0--0" { route_table_id = "${aws_route_table.private-us-test-1b-privatekopeio-example-com.id}" destination_cidr_block = "0.0.0.0/0" nat_gateway_id = "nat-b2345678" diff --git a/tests/integration/update_cluster/privateweave/kubernetes.tf b/tests/integration/update_cluster/privateweave/kubernetes.tf index d354403fb376d..1cfa8d004bcef 100644 --- a/tests/integration/update_cluster/privateweave/kubernetes.tf +++ b/tests/integration/update_cluster/privateweave/kubernetes.tf @@ -474,13 +474,13 @@ resource "aws_nat_gateway" "us-test-1a-privateweave-example-com" { } } -resource "aws_route" "0-0-0-0--0" { +resource "aws_route" "route-0-0-0-0--0" { route_table_id = "${aws_route_table.privateweave-example-com.id}" destination_cidr_block = "0.0.0.0/0" gateway_id = "${aws_internet_gateway.privateweave-example-com.id}" } -resource "aws_route" "private-us-test-1a-0-0-0-0--0" { +resource "aws_route" "route-private-us-test-1a-0-0-0-0--0" { route_table_id = "${aws_route_table.private-us-test-1a-privateweave-example-com.id}" destination_cidr_block = "0.0.0.0/0" nat_gateway_id = "${aws_nat_gateway.us-test-1a-privateweave-example-com.id}" diff --git a/tests/integration/update_cluster/restrict_access/kubernetes.tf b/tests/integration/update_cluster/restrict_access/kubernetes.tf index 8b9b3a6b247b8..61acb00ca6946 100644 --- a/tests/integration/update_cluster/restrict_access/kubernetes.tf +++ b/tests/integration/update_cluster/restrict_access/kubernetes.tf @@ -278,7 +278,7 @@ resource "aws_launch_configuration" "nodes-restrictaccess-example-com" { enable_monitoring = false } -resource "aws_route" "0-0-0-0--0" { +resource "aws_route" "route-0-0-0-0--0" { route_table_id = "${aws_route_table.restrictaccess-example-com.id}" destination_cidr_block = "0.0.0.0/0" gateway_id = "${aws_internet_gateway.restrictaccess-example-com.id}" diff --git a/tests/integration/update_cluster/shared_vpc/kubernetes.tf b/tests/integration/update_cluster/shared_vpc/kubernetes.tf index b9507a5400fd8..21c5910b7c913 100644 --- a/tests/integration/update_cluster/shared_vpc/kubernetes.tf +++ b/tests/integration/update_cluster/shared_vpc/kubernetes.tf @@ -263,7 +263,7 @@ resource "aws_launch_configuration" "nodes-sharedvpc-example-com" { enable_monitoring = false } -resource "aws_route" "0-0-0-0--0" { +resource "aws_route" "route-0-0-0-0--0" { route_table_id = "${aws_route_table.sharedvpc-example-com.id}" destination_cidr_block = "0.0.0.0/0" gateway_id = "igw-1" diff --git a/upup/pkg/fi/cloudup/awstasks/route.go b/upup/pkg/fi/cloudup/awstasks/route.go index fe6f199930798..5c341b9d349f6 100644 --- a/upup/pkg/fi/cloudup/awstasks/route.go +++ b/upup/pkg/fi/cloudup/awstasks/route.go @@ -246,7 +246,10 @@ func (_ *Route) RenderTerraform(t *terraform.TerraformTarget, a, e, changes *Rou tf.InstanceID = e.Instance.TerraformLink() } - return t.RenderResource("aws_route", *e.Name, tf) + // Terraform 0.12 doesn't support resource names that start with digits. See #7052 + // and https://www.terraform.io/upgrade-guides/0-12.html#pre-upgrade-checklist + name := fmt.Sprintf("route-%v", *e.Name) + return t.RenderResource("aws_route", name, tf) } type cloudformationRoute struct { diff --git a/upup/pkg/fi/cloudup/awstasks/vpccidrblock.go b/upup/pkg/fi/cloudup/awstasks/vpccidrblock.go index 80a1436e6126c..405c61ccdfa06 100644 --- a/upup/pkg/fi/cloudup/awstasks/vpccidrblock.go +++ b/upup/pkg/fi/cloudup/awstasks/vpccidrblock.go @@ -124,7 +124,10 @@ func (_ *VPCCIDRBlock) RenderTerraform(t *terraform.TerraformTarget, a, e, chang CIDRBlock: e.CIDRBlock, } - return t.RenderResource("aws_vpc_ipv4_cidr_block_association", *e.Name, tf) + // Terraform 0.12 doesn't support resource names that start with digits. See #7052 + // and https://www.terraform.io/upgrade-guides/0-12.html#pre-upgrade-checklist + name := fmt.Sprintf("cidr-%v", *e.Name) + return t.RenderResource("aws_vpc_ipv4_cidr_block_association", name, tf) } type cloudformationVPCCIDRBlock struct {