feat(ecs): add useLocalStorage support for ManagedInstancesCapacityProvider#37574
Open
badmintoncryer wants to merge 6 commits intoaws:mainfrom
Open
feat(ecs): add useLocalStorage support for ManagedInstancesCapacityProvider#37574badmintoncryer wants to merge 6 commits intoaws:mainfrom
badmintoncryer wants to merge 6 commits intoaws:mainfrom
Conversation
…ovider Add `useLocalStorage` prop to `ManagedInstancesCapacityProvider` that maps to `localStorageConfiguration.useLocalStorage` in the L1 resource, enabling ECS to use instance store (local NVMe) volumes instead of EBS for task storage. Validation logic: - `useLocalStorage: true` + `localStorage: EXCLUDED` → hard error (contradictory) - `useLocalStorage: true` + `localStorage: INCLUDED` → synthesis warning - `useLocalStorage: true` + `instanceRequirements` omitted → synthesis warning - `useLocalStorage: true` + `localStorage` omitted → auto-set to REQUIRED Closes #XXXXX
Contributor
|
|
||||||||||||||
Contributor
|
|
||||||||||||||
badmintoncryer
commented
Apr 13, 2026
badmintoncryer
commented
Apr 13, 2026
Co-authored-by: Kazuho Cryer-Shinozuka <malaysia.cryer@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue # (if applicable)
N/A
Reason for this change
localStorageConfiguration.useLocalStoragehas been available in the L1CfnCapacityProviderresource since ECS Managed Instances was introduced, but there was no L2 surface for it. Without settinguseLocalStorage: true, tasks on Managed Instances would use EBS-backed storage even when the selected instance types have local NVMe storage (instance store).Description of changes
Adds
useLocalStorage?: booleantoManagedInstancesCapacityProviderProps. When set totrue, it maps tolocalStorageConfiguration.useLocalStorage: truein the synthesizedAWS::ECS::CapacityProviderresource, causing ECS to use instance store volumes instead of EBS for task storage.Validation logic at synthesis time:
useLocalStorageinstanceRequirements.localStoragetrueREQUIREDtrueINCLUDEDtrueEXCLUDEDtrueREQUIREDtrueinstanceRequirementsDescribe any new or updated permissions being added
None.
Description of how you validated changes
Add both unit and integ test.
Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license