Skip to content

Conversation

@viren-nadkarni
Copy link
Contributor

@viren-nadkarni viren-nadkarni commented Apr 15, 2025

On AWS, EC2 RunInstances does not require a subnet ID. By default, it uses the default subnet from the default VPC. However, if the default subnet and VPCs are not available (i.e. if they were manually deleted), the subnet ID is mandatory.

This PR implements this behaviour in Moto.

@viren-nadkarni viren-nadkarni force-pushed the ec2-default-subnets branch 3 times, most recently from cb539c8 to e67d4e0 Compare April 21, 2025 06:07
@codecov
Copy link

codecov bot commented Apr 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.82%. Comparing base (4375dfc) to head (0914d44).
Report is 13 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8813      +/-   ##
==========================================
- Coverage   92.82%   92.82%   -0.01%     
==========================================
  Files        1266     1266              
  Lines      110584   110665      +81     
==========================================
+ Hits       102651   102720      +69     
- Misses       7933     7945      +12     
Flag Coverage Δ
servertests 28.08% <70.00%> (-0.08%) ⬇️
unittests 92.79% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@viren-nadkarni viren-nadkarni marked this pull request as ready for review April 21, 2025 10:34
Copy link
Collaborator

@bblommers bblommers left a comment

Choose a reason for hiding this comment

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

Great, thank you @viren-nadkarni!

@bblommers bblommers added this to the 5.1.4 milestone Apr 27, 2025
@bblommers bblommers merged commit 25468d8 into getmoto:master Apr 27, 2025
57 checks passed
@bblommers bblommers modified the milestones: 5.1.4, 5.1.5 Apr 27, 2025
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