Skip to content

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

Merged
jyecusch merged 1 commit into
nitrictech:mainfrom
tom-groves:fix/aws-ssm-parameter-tier-auto-detect
Oct 16, 2026
Merged

jyecusch merged 1 commit into
nitrictech:mainfrom
tom-groves:fix/aws-ssm-parameter-tier-auto-detect

Conversation

@tom-groves

Copy link
Copy Markdown
Contributor

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

vercel Bot commented Mar 14, 2026

Copy link
Copy Markdown

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

A member of the Team first needs to authorize it.

@vercel

vercel Bot commented Mar 16, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
nitric-docs Ignored Ignored Preview Mar 16, 2026 11:15pm

Request Review

@jyecusch
jyecusch merged commit 314ea6a into nitrictech:main Oct 16, 2026
7 of 8 checks passed
@nitric-bot

Copy link
Copy Markdown

🎉 This PR is included in version 1.27.8 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants