-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
Faulty Read of Client VPN Network associations break state #11586
Comments
This appears to be an Amazon API bug doesn't work
works
|
I wonder when the pull request will be approved. |
Hi all! 👋 Just wanted to direct you to our public roadmap for this quarter (Nov-Jan) in which this item has been mentioned. Due to the significant community interest in resolving this issue, we will be looking at merging existing contributions soon. We appreciate all the contributions and feedback thus far. |
The ability to use |
This has been released in version 3.33.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 for triage. Thanks! |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
In aws/resource_aws_ec2_client_vpn_network_association.go line 112 commit/acc6a21a3bd6159f4f8c10a86bcd08e70edce4f2
d.Set("subnet_id", result.ClientVpnTargetNetworks[0].TargetNetworkId)
leads to wrong subnet-ids if more than one Subnet is associated with the VPN Endpoint (as only the first entry of the map is read. Minimal example breaking the state:
will lead to replacement on every terraform plan.
This may have teh reason that the API call here result, err := conn.DescribeClientVpnTargetNetworks(&ec2.DescribeClientVpnTargetNetworksInput{
ClientVpnEndpointId: aws.String(d.Get("client_vpn_endpoint_id").(string)),
AssociationIds: []*string{aws.String(d.Id())},
actually does NOT return a list with only one entry, but all associations. One can test this by making this call with a wrong AssociationId.
The text was updated successfully, but these errors were encountered: