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

[Support] Update VPC peering terraform #2519

Merged
merged 1 commit into from
Nov 19, 2020
Merged

[Support] Update VPC peering terraform #2519

merged 1 commit into from
Nov 19, 2020

Conversation

mogds
Copy link
Contributor

@mogds mogds commented Nov 18, 2020

What

Adding a new vpc peering entry results in terraform recreating existing
connections because it uses the count parameter. This updates the resources
to use the for_each parameter so this doesn't happen.

How to review

  • Code review
  • Delete test VPC peering connections in the dev account
  • Create devenv.vpc_peering.json and add a test vpc
  • Deploy to your dev env
  • Update devenv.vpc_peering.json with a new vpc and redeploy
  • Confirm previous peer is still connected

🚨⚠️ Please do not merge this pull request via the GitHub UI ⚠️🚨

Adding a new vpc peering entry results in terraform recreating existing
connections because it uses the count parameter. This updates the resources
to use the for_each parameter so this doesn't happen.
@46bit
Copy link
Contributor

46bit commented Nov 18, 2020

I'm deploying this to my dev env to review it 🎉

Copy link
Contributor

@46bit 46bit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to work perfectly. 🎉

@46bit 46bit merged commit 847d6a3 into master Nov 19, 2020
@46bit 46bit deleted the vpc-tf branch November 19, 2020 12:10
@46bit
Copy link
Contributor

46bit commented Nov 19, 2020

Unfortunately this triggered an AWS Terraform Provider bug and we had to revert in #2521.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants