You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Appending routes cause recreation of routes leading to failed terraform applies due to many unnecessary routing changes.
If we use a map for both var.authorization_rules and var.additional_routes, then we can use a for_each instead of count for auth rules and vpn routes and make the key something like {stage}-{cidr} or similar
then we would be able to append routes and rules, avoid unnecessary deletions, and reduce the likelihood of the following error.
│ Error: error deleting client VPN route "cvpn-endpoint-snip,subnet-snip,10.66.0.0/15": timeout while waiting for resource to be gone (last state: 'deleting', timeout: 1m0s)
│ Error: error creating client VPN route "cvpn-endpoint-snip,subnet-snip,10.68.0.0/15": ConcurrentMutationLimitExceeded: Cannot initiate another change for this endpoint at this time. Please try again later.
The text was updated successfully, but these errors were encountered:
jurgenweber
added a commit
to jurgenweber/terraform-aws-ec2-client-vpn
that referenced
this issue
Mar 22, 2024
Have a question? Please checkout our Slack Community or visit our Slack Archive.
Describe the Feature
Appending routes cause recreation of routes leading to failed terraform applies due to many unnecessary routing changes.
If we use a map for both
var.authorization_rules
andvar.additional_routes
, then we can use afor_each
instead ofcount
for auth rules and vpn routes and make the key something like{stage}-{cidr}
or similarterraform-aws-ec2-client-vpn/main.tf
Line 223 in 0e4f0d9
terraform-aws-ec2-client-vpn/main.tf
Line 233 in 0e4f0d9
then we would be able to append routes and rules, avoid unnecessary deletions, and reduce the likelihood of the following error.
The text was updated successfully, but these errors were encountered: