Skip to content

Comments

ec2: Add dry run error handling for fleet creation#114

Merged
nik-localstack merged 1 commit intolocalstack:localstackfrom
nik-localstack:nikos/unc-265
Feb 24, 2026
Merged

ec2: Add dry run error handling for fleet creation#114
nik-localstack merged 1 commit intolocalstack:localstackfrom
nik-localstack:nikos/unc-265

Conversation

@nik-localstack
Copy link

Motivation

Karpenter calls create_fleet operation with DryRun=true
Current moto implementation still tries to create these ec2 instances, which leads to unexpected behavior

Changes

Add proper response and return early when dry run is used in fleet creation

Copy link
Member

@viren-nadkarni viren-nadkarni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@nik-localstack nik-localstack merged commit d8a495a into localstack:localstack Feb 24, 2026
66 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants