Terraform shows plan changes when inline security group rules are converted to aws_security_group_rule #5243
Labels
question
A question about existing functionality; most questions are re-routed to discuss.hashicorp.com.
service/ec2
Issues and PRs that pertain to the ec2 service.
This issue was originally opened by @pkr1234 as hashicorp/terraform#18487. It was migrated here as a result of the provider split. The original body of the issue is below.
I have a security group with inline rules. Example:
I was getting terraform cycle error. In order to resolve that, I removed the inline blocks and moved them to aws_security_group_rule like this:
Now I run terraform plan and it shows it will add 2 resources. There should be no changes.
How do I resolve this? I do not want terraform plan to show any changes and I'm importing an existing infrastructure.
The text was updated successfully, but these errors were encountered: