Terraform-provider-aws: Issue with Terraform Updating Security Group

Created on 13 Jun 2017  路  4Comments  路  Source: hashicorp/terraform-provider-aws

_This issue was originally opened by @thegranddesign as hashicorp/terraform#5902. It was migrated here as part of the provider split. The original body of the issue is below._


    Terraform Version: 0.6.15
    Resource ID: aws_security_group_rule.allow_ssh_in
    Mismatch reason: diff: Destroy; old: false, new: true
    Diff One (usually from plan): *terraform.InstanceDiff{Attributes:map[string]*terraform.ResourceAttrDiff{"cidr_blocks.#":*terraform.ResourceAttrDiff{Old:"1", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}}, Destroy:false, DestroyTainted:false}
    Diff Two (usually from apply): *terraform.InstanceDiff{Attributes:map[string]*terraform.ResourceAttrDiff{"cidr_blocks.0":*terraform.ResourceAttrDiff{Old:"10.0.0.136/32", New:"10.0.0.131/32", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:true, Type:0x0}, "to_port":*terraform.ResourceAttrDiff{Old:"512", New:"512", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, "security_group_id":*terraform.ResourceAttrDiff{Old:"sg-2447355b", New:"sg-2447355b", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, "from_port":*terraform.ResourceAttrDiff{Old:"512", New:"512", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, "cidr_blocks.#":*terraform.ResourceAttrDiff{Old:"1", New:"1", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, "type":*terraform.ResourceAttrDiff{Old:"ingress", New:"ingress", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, "protocol":*terraform.ResourceAttrDiff{Old:"tcp", New:"tcp", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, "source_security_group_id":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, "self":*terraform.ResourceAttrDiff{Old:"false", New:"0", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}}, Destroy:true, DestroyTainted:false}
bug servicec2

Most helpful comment

has this even been resolved? I face the same issue.

tf v.0.11.1

All 4 comments

This issue still exists and is preventing me from destroying an RDS database and the subnets as per this issue that is closed

https://github.com/hashicorp/terraform/issues/5901

Is there any update on when this will be resolved?

has this even been resolved? I face the same issue.

tf v.0.11.1

Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label.

If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!

Also getting the 'already exists' error when updating in place.
Does anyone have a workaround?

Was this page helpful?
0 / 5 - 0 ratings