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
{{ message }}
Repository navigation
EC2: a launch template is ignored entirely when ImageId is also passed #453
runInstances gates its whole launch-template block on imageID == "". A request that supplies both an explicit ImageId and a LaunchTemplate.LaunchTemplateId therefore never reads the template at all — losing its InstanceType, KeyName, security groups, and (as of #444) its subnet and public-IP preference.
Real AWS merges the two, with request-level values winning per field. The launch succeeds either way, so this is the same shape as #443/#444: no error, just a silently different instance than the caller asked for.
Widening the gate changes behaviour for every existing caller that passes both, in a way that depends on which fields their template carries. It needs its own per-field precedence matrix and test table rather than riding along on a subnet fix.
Acceptance criteria
Template resolution no longer depends on whether ImageId was supplied.
Existing launch-template tests still pass — TestEC2Plugin_RunInstances_ViaLaunchTemplate and the ec2_launchtemplate_test.go suite are the regression surface.
docs/services.md states the merge rule and the per-field precedence.
Activity
fix(ec2): merge a launch template with request-level parameters (#453) (
chore(release): v0.85.0 (#467)
feat(ec2): read an instance's user data back with DescribeInstanceAtt…