Skip to content
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

vpc_peering_status of deleted doesn't get re-created. #5946

Closed
ashb opened this issue Mar 31, 2016 · 4 comments · Fixed by #5959
Closed

vpc_peering_status of deleted doesn't get re-created. #5946

ashb opened this issue Mar 31, 2016 · 4 comments · Fixed by #5959

Comments

@ashb
Copy link
Contributor

ashb commented Mar 31, 2016

I deleted a VPC peering connection and now terraform thinks its still okay. The state file looks like this (edited to remove tags and ids):

                "aws_vpc_peering_connection.build_system": {
                    "type": "aws_vpc_peering_connection",
                    "depends_on": [
                        "aws_vpc.default"
                    ],
                    "primary": {
                        "id": "pcx-c1ae7da8",
                        "attributes": {
                            "accept_status": "deleted",
                            "auto_accept": "true",
                            "id": "pcx-c1ae7da8",
                            "peer_owner_id": "**",
                            "peer_vpc_id": "vpc-**",
                            "tags.#": "0",
                            "vpc_id": "vpc-***"
                        }
                    }
                },

It seems there's no way to get terraform to recreate this whilst the stat is "deleted" in AWS still.

@catsby
Copy link
Contributor

catsby commented Mar 31, 2016

Thanks @ashb — I've patched this in #5959 which was just merged, it should go out in the next release!

@ashb
Copy link
Contributor Author

ashb commented Apr 1, 2016

Thanks for speedily protecting me against my own stupidity :D

@catsby
Copy link
Contributor

catsby commented Apr 1, 2016

Thanks for speedily protecting me against my own stupidity :D

Not you at all! Terraform should behave the way you were expecting, but it wasn't. Thanks for bringing it to our attention!

@ghost
Copy link

ghost commented Apr 26, 2020

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 ghost locked and limited conversation to collaborators Apr 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants