Not idempotent for aws_route_table_association #6556
Labels
service/ec2
Issues and PRs that pertain to the ec2 service.
upstream-terraform
Addresses functionality related to the Terraform core binary.
This issue was originally opened by @RuBiCK as hashicorp/terraform#19435. It was migrated here as a result of the provider split. The original body of the issue is below.
Terraform Version
Terraform v0.11.10
Affected resources
aws_route_table_association
Expected Behavior
I have a var that defines subnets with tags to indicate if a subnet is public
I create a resource aws_route_table that I associate to certain subnets found by data aws_subnet_ids
It's expected to be idempotent if I run many times
terraform apply
The subnet id to be associated needs to be computed (in my case) and after gather all information, terraform should check that association exists or not instead of delete and create the same association.
Actual Behavior
Between first and second apply the route_table_association gets removed and recreated again for each apply:
plan:
apply:
Steps to Reproduce
terraform plan
terraform apply
terraform apply
Output
Debug log
Additional Context
References
The text was updated successfully, but these errors were encountered: