You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you change the destination type of an aws_route, for example from a network interface (network_interface_id) to an internet gateway (gateway_id), when you run terraform apply it fails with:
* aws_route.test: 1 error(s) occurred:
* aws_route.test: Error: more than 1 target specified. Only 1 of gateway_id, egress_only_gateway_id, nat_gateway_id, instance_id, network_interface_id, route_table_id or vpc_peering_connection_id is allowed.
This type of change could occur if you change a subnet from being "private" to "public" or change from using an instance as a NAT gateway to using an AWS NAT gateway.
The route to destination 0.0.0.0/0 is changed from a network interface to the internet gateway when the terraform config is changed and terraform apply is run.
Actual Behavior
terraform apply failed with an error when route is changed in terraform config from a network interface destination to an internet gateway destination.
Steps to Reproduce
To reproduce:
Using Step 1 terraform config (see above) run: terraform apply
Change route destination from network interface to internet gateway to produce Step 2 terraform config (see above)
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
ghost
locked and limited conversation to collaborators
Apr 9, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
If you change the destination type of an aws_route, for example from a network interface (network_interface_id) to an internet gateway (gateway_id), when you run
terraform apply
it fails with:This type of change could occur if you change a subnet from being "private" to "public" or change from using an instance as a NAT gateway to using an AWS NAT gateway.
Terraform Version
Affected Resource(s)
Please list the resources as a list, for example:
Terraform Configuration Files
Step 1, Terraform config
Step 2, Terraform config
Expected Behavior
The route to destination 0.0.0.0/0 is changed from a network interface to the internet gateway when the terraform config is changed and
terraform apply
is run.Actual Behavior
terraform apply
failed with an error when route is changed in terraform config from a network interface destination to an internet gateway destination.Steps to Reproduce
To reproduce:
terraform apply
terraform apply
References
I found this issue that is similar
The text was updated successfully, but these errors were encountered: