Skip to content

v2.0.1 - Patch: latent CloudFormation race conditions

Latest

Choose a tag to compare

@hansmohob hansmohob released this 02 Sep 08:23
8433f5c

Patch release fixing two latent CloudFormation bugs that surface on stack update or occasional fresh-create races.

Fixes

  • Removed hardcoded PrivateIpAddress on the EC2 instance. Any update that replaces the instance (for example when the latest-AMI SSM parameter resolves to a new AMI) failed with 'Address in use' because CloudFormation creates the replacement before deleting the old one.
  • Added missing DependsOn edges. routepublic and albcodeserver now depend on the internet gateway attachment; ec2codeserver now depends on the CloudWatch config SSM parameter (fetched by constructed name in the setup script).

Validated on a fresh deployment in a different region.