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
resource"aws_route_table""aws_rtb" {
vpc_id=module.foo_vpc.vpc_idtags={
Name ="rtb"
}
dynamic"route" {
for_each=local.dhcp_routecontent {
cidr_block=route.key// This is a CIDR stringegress_only_gateway_id=""gateway_id=""local_gateway_id=""ipv6_cidr_block=""nat_gateway_id=""network_interface_id=route.value[1] // This is a string in a listtransit_gateway_id=""vpc_peering_connection_id=""vpc_endpoint_id=""
}
}
And being able to push a new route with network_interface_id as a target, either by specifying both the instance_id AND the network_interface_id, or only the network_interface_id but without it creating diffs afterwards in terraform plan (due to not specifying instance_id)
Actual Behavior
We see a permanent diff for existing routes because the instance ID isn't in the configuration, but we can't explicitly set the instance_id because only one of instance_id or network_interface_id can be set for terraform apply.
Steps to Reproduce
Create an aws_route resource with route config blocks.
The text was updated successfully, but these errors were encountered:
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 as resolved and limited conversation to collaborators
Feb 6, 2021
This issue was closed.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Terraform Version
Terraform Configuration Files
Debug Output
Expected Behavior
No diff for existing routes.
And being able to push a new route with network_interface_id as a target, either by specifying both the instance_id AND the network_interface_id, or only the network_interface_id but without it creating diffs afterwards in terraform plan (due to not specifying instance_id)
Actual Behavior
We see a permanent diff for existing routes because the instance ID isn't in the configuration, but we can't explicitly set the instance_id because only one of instance_id or network_interface_id can be set for terraform apply.
Steps to Reproduce
Create an aws_route resource with route config blocks.
The text was updated successfully, but these errors were encountered: