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

ConcurrentMutationLimitExceeded - while creating multiple aws_ec2_client_vpn_route #19750

Closed
D3N14L opened this issue Jun 10, 2021 · 2 comments · Fixed by #22911
Closed

ConcurrentMutationLimitExceeded - while creating multiple aws_ec2_client_vpn_route #19750

D3N14L opened this issue Jun 10, 2021 · 2 comments · Fixed by #22911
Labels
bug Addresses a defect in current functionality. service/ec2 Issues and PRs that pertain to the ec2 service.
Milestone

Comments

@D3N14L
Copy link

D3N14L commented Jun 10, 2021

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • 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
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform CLI and Terraform AWS Provider Version

Terraform v0.15.5
on darwin_amd64

  • provider registry.terraform.io/hashicorp/aws v3.43.0
  • provider registry.terraform.io/hashicorp/template v2.2.0
  • provider registry.terraform.io/hashicorp/tls v3.1.0

Affected Resource(s)

  • aws_ec2_client_vpn_route

Terraform Configuration Files

I used the example from https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ec2_client_vpn_route
and created 21 objects of type ec2_client_vpn_route.

Debug Output

│ Error: error creating client VPN route "cvpn-endpoint-xxx,subnet-yyy,10.0.13.0/24": ConcurrentMutationLimitExceeded: Cannot initiate another change for this endpoint at this time. Please try again later.
│ 	status code: 400, request id: 80f05565-...
│
│   with module.test_infra_client_vpn.aws_ec2_client_vpn_route.this[14],
│   on .terraform/modules/client_vpn/client-vpn.tf line 80, in resource "aws_ec2_client_vpn_route" "this":
│   80: resource "aws_ec2_client_vpn_route" "this" {
│

Expected Behavior

As this is "just" a concurrency problem, the provider should recognize the Error and retry the operation until the resource has been created.

Actual Behavior

Some of the resources won´t get created due to this error. However, each time I re-run terraform apply some more resources get created.

Steps to Reproduce

  • Create a ClientVPN endpoint
  • add a larger number of aws_ec2_client_vpn_routes (~20) to it.

Important Factoids

References

@github-actions github-actions bot added needs-triage Waiting for first response or review from a maintainer. service/ec2 Issues and PRs that pertain to the ec2 service. labels Jun 10, 2021
@anGie44 anGie44 added bug Addresses a defect in current functionality. and removed needs-triage Waiting for first response or review from a maintainer. labels Jun 10, 2021
@github-actions github-actions bot added this to the v4.0.0 milestone Feb 4, 2022
@github-actions
Copy link

This functionality has been released in v4.0.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/ec2 Issues and PRs that pertain to the ec2 service.
Projects
None yet
2 participants