Skip to content

fix(aws): auto-select SSM parameter tier to avoid 4096-char limit#912

Open
tom-groves wants to merge 1 commit intonitrictech:mainfrom
tom-groves:fix/aws-ssm-parameter-tier-auto-detect
Open

fix(aws): auto-select SSM parameter tier to avoid 4096-char limit#912
tom-groves wants to merge 1 commit intonitrictech:mainfrom
tom-groves:fix/aws-ssm-parameter-tier-auto-detect

Conversation

@tom-groves
Copy link

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 ParameterValueTooLong or tier-related validation error.

This change detects the JSON size at deploy time and automatically selects the appropriate SSM tier:

  • ≤ 4,096 bytes → Standard (default, no cost impact)
  • 4,096 bytes → Advanced (~$0.05/parameter/month)

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

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Testing

This is a simple conditional change — go build and go vet pass on the affected packages. No unit tests added as the deployment provider packages (deploy/, deploytf/) have no existing test coverage.

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.
@vercel
Copy link

vercel bot commented Mar 14, 2026

@tom-groves is attempting to deploy a commit to the Nitric Team on Vercel.

A member of the Team first needs to authorize it.

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.

1 participant