- Newest
- Most votes
- Most comments
Hi, have a look at this issue https://github.com/aws-cloudformation/cloudformation-coverage-roadmap/issues/429 in the CloudFormation Coverage Roadmap. It looks to me from the comments that for a long time there was no CloudFormation support for setting these options but some was added about a year ago. Yet the issue wasn't closed off which means maybe there are still problems with it.
Note that in https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpnconnection.html VpnTunnelOptionsSpecifications and its subproperties are marked "Update requires: Replacement", meaning usually CloudFormation creates the replacement resource first, changes references from other dependent resources to point to the replacement resource, and then deletes the old resource. I could see that approach leading to the error you're seeing, so perhaps that's where remaining problems lie.
You could try doing your update in two steps. First remove the AWS::EC2::VPNConnection object (and anything depending on it) from your template and do a Stack update, then add it back in with the new VpnTunnelOptionsSpecifications values and do a second Stack update.
Relevant content
- asked a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 2 years ago