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

r/aws_vpc: Add wait_for_ipam_deallocation parameter #34628

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

p-hash
Copy link

@p-hash p-hash commented Nov 29, 2023

Description

The wait for IPAM pool deallocation was introduced in #30795.
This allows force-recreation of VPC whose CIDR is IPAM-managed to succeed by waiting for IPAM to reach eventual consistency.
Better explanation of the reasoning behind this change can be found here: #31211 (comment)

The problem is that IPAM deallocation takes significant amount of time. For certain use-cases waiting for IPAM can be skipped, like final destroy of the VPC.

This PR introduces a parameter wait_for_ipam_deallocation which defaults to true (current behavior). Thus, if user thinks the wait just adds up execution time unreasonably, wait_for_ipam_deallocation = false could be passed to vpc resource.

Relations

Closes #31211
Relates #27571

References

#30795

Output from Acceptance Testing

% make testacc TESTS=TestAccXXX PKG=ec2

...

Copy link

Community Note

Voting for Prioritization

  • Please vote on this pull request by adding a 👍 reaction to the original post to help the community and maintainers prioritize this pull request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

For Submitters

  • Review the contribution guide relating to the type of change you are making to ensure all of the necessary steps have been taken.
  • For new resources and data sources, use skaff to generate scaffolding with comments detailing common expectations.
  • Whether or not the branch has been rebased will not impact prioritization, but doing so is always a welcome surprise.

@github-actions github-actions bot added size/XS Managed by automation to categorize the size of a PR. documentation Introduces or discusses updates to documentation. service/vpc Issues and PRs that pertain to the vpc service. labels Nov 29, 2023
@terraform-aws-provider terraform-aws-provider bot added the needs-triage Waiting for first response or review from a maintainer. label Nov 29, 2023
@justinretzolk justinretzolk added bug Addresses a defect in current functionality. and removed needs-triage Waiting for first response or review from a maintainer. labels Dec 6, 2023
@p-hash
Copy link
Author

p-hash commented Jan 10, 2024

@justinretzolk @evanphx Is there anything I can do to push this through?

@laminarcode
Copy link

Kindly merge. Destroying aws_vpc with IPAM allocation times out currently. A fix is needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Addresses a defect in current functionality. documentation Introduces or discusses updates to documentation. service/vpc Issues and PRs that pertain to the vpc service. size/XS Managed by automation to categorize the size of a PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: aws_vpc deletion waiting on IPAM pool deallocation
3 participants