Files
floci/src/main/java/io/github
Hector Ventura e1334cb512 fix(cloudformation): fail an EC2 instance whose LaunchTemplate cannot be resolved (#4058)
Ec2InstanceCfnProvisioner swallowed a failed resolveLaunchTemplateData at debug and then launched the instance with default config (t3.micro, no template AMI/KeyName). A LaunchTemplate a stack references but that does not resolve is a real error, as on AWS, so let the AwsException propagate and fail the resource. The unused LOG field is removed with the swallow.

The lookup only runs when the resolved LaunchTemplate is an object naming a template: an Fn::If that selects AWS::NoValue resolves to an empty node (CloudFormationTemplateEngine maps AWS::NoValue to ""), which on AWS means the property is absent, so it must launch without a template rather than raise InvalidLaunchTemplateId.NotFound.

Refs #3810
2026-09-21 09:58:28 -04:00
..