-
Notifications
You must be signed in to change notification settings - Fork 9.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"terraform plan" always shows aws_instance resources to be changed with new "vpc_security_group_ids" parameter #8371
Comments
Hello – I have a few questions that can help me narrow this down:
Thanks! |
@catsby hey) So, I have variable security_group = "sg-xxxxxxxx,${aws_security_group.security_group.id}"
|
If you run your
Confusingly enough, I believe using |
NO, debug seems to show nothing, and I can't use security groups with VPC I believe due to backward incompatibility in CHANGELOG to 0.7.0, and what I admitted is that if I use vpc_security _group_ids and then check "terraform show" there are 2 security groups with names but there aren't any vpc_security _group_ids:
terraform apply:
terraform plan:
terraform show:
|
any updates? |
Hey @antimack I apologize for the silence here. If you're still having this issue I would recommend making a backup of your statefile, and then removing this section:
And then doing a refresh with I apologize again for the long silence here. Please let me know if this is still troubling you. |
Thank you, will try after my vacation!) |
I'm going to close this issue for now then. Please let me know if you're still hitting it after returning from vacation! Enjoy 😄 |
I'm having the same issue with v0.10.7. I tried your suggestion of deleting the |
@frosas same here with |
Still facing this issue. |
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. |
Terraform version 0.7.1
During refactoring to latest Terraform version I found that every time I run "terraform plan" on refactored configs with new "vpc_security_group_ids" parameter instead "security_group" I get my resources to be changed even if they have already changed to use group id's:
~ module.composition_ec2_ebs_s3_route53.aws_instance.aws_instance.nodes.0
vpc_security_group_ids.#: "0" => "2"
vpc_security_group_ids.4007540670: "" => "sg-xxxxxxxx"
vpc_security_group_ids.4178067539: "" => "sg-xxxxxxxx"
~ module.composition_ec2_ebs_s3_route53.aws_instance.aws_instance.nodes.1
vpc_security_group_ids.#: "0" => "2"
vpc_security_group_ids.4007540670: "" => "sg-xxxxxxxx"
vpc_security_group_ids.4178067539: "" => "sg-xxxxxxxx"
~ module.composition_ec2_ebs_s3_route53.aws_instance.aws_instance.nodes.2
vpc_security_group_ids.#: "0" => "2"
vpc_security_group_ids.4007540670: "" => "sg-xxxxxxxx"
vpc_security_group_ids.4178067539: "" => "sg-xxxxxxxx"
The text was updated successfully, but these errors were encountered: