bug: EC2 ModifyLaunchTemplate fails by name and mutates the default during DryRun #85
AndreKurait
started this conversation in
Bugs (AWS)
Replies: 2 comments
|
Hi @AndreKurait, thanks for raising this. I have reproduced this issue on my side, so I will escalate to my engineers for a fix. Once a fix is ready, I will let you know as soon as possible! |
0 replies
|
Hi @AndreKurait, thanks again for this report. We have issued a fix for this in the |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Is there an existing issue for this?
I searched the existing issues, pull requests, and organization discussions for
ModifyLaunchTemplate,modify_launch_template, and EC2 DryRun. I found the historical implementation PR and account-scope fix, but no report tracking these two cases.Current Behavior
On the stock image below,
ModifyLaunchTemplatehas two reproducible problems:LaunchTemplateNameandDefaultVersion, with noLaunchTemplateId, returns HTTP 500 /InternalErrorwith message'LaunchTemplateId'. This happens with and withoutDryRun=True.DryRun=Truereturns HTTP 200 and changes the template's default version. A subsequentDescribeLaunchTemplatesconfirms the change.An ordinary ID-based modification succeeds and returns the correct nested
LaunchTemplateidentity.Expected Behavior
The API accepts either a launch-template name or ID. A valid dry run should return
DryRunOperationand leave the default version unchanged.AWS API reference: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyLaunchTemplate.html
How are you starting LocalStack?
With
docker run, using the stock Pro image, an auth token supplied through the environment, and EC2 enabled. No extensions or source patches were loaded for the reproduction.Steps To Reproduce
Run the following against the stock LocalStack endpoint. It uses dummy emulator credentials and removes the template afterward.
Observed outcomes, in order:
InternalError: 'LaunchTemplateId'InternalError: 'LaunchTemplateId'Environment
2026.11.0.dev102localstack/localstack-pro@sha256:4f410f246973e722521f3ee27ec08c07827d9683f233a28fe8858a6591ac55112026-10-16d30ab68eAll reactions