fix(aws): auto-select SSM parameter tier to avoid 4096-char limit#912
Open
tom-groves wants to merge 1 commit intonitrictech:mainfrom
Open
fix(aws): auto-select SSM parameter tier to avoid 4096-char limit#912tom-groves wants to merge 1 commit intonitrictech:mainfrom
tom-groves wants to merge 1 commit intonitrictech:mainfrom
Conversation
Large Nitric stacks produce a resource-index JSON that exceeds the 4,096-character limit of the SSM Standard tier, causing deployment failures. Detect the JSON size at deploy time and automatically upgrade to the Advanced tier (8,192-char limit) when needed. Applies to both the Pulumi provider (deploy/resources.go) and the Terraform CDKTF provider (deploytf/.nitric/modules/parameter/ and deploytf/resources.go). Small stacks are unaffected and continue to use the Standard tier at no additional cost.
|
@tom-groves is attempting to deploy a commit to the Nitric Team on Vercel. A member of the Team first needs to authorize it. |
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.
Description
When a Nitric stack grows large enough, the resource-index JSON written to AWS SSM Parameter Store exceeds the Standard tier's 4,096-character limit, causing deployment failures with a
ParameterValueTooLongor tier-related validation error.This change detects the JSON size at deploy time and automatically selects the appropriate SSM tier:
Standard(default, no cost impact)Applies to both the Pulumi provider (
cloud/aws/deploy/resources.go) and the Terraform CDKTF provider (cloud/aws/deploytf/). Small stacks are unaffected.Type of change
Testing
This is a simple conditional change —
go buildandgo vetpass on the affected packages. No unit tests added as the deployment provider packages (deploy/,deploytf/) have no existing test coverage.