Skip to content

Remove SSM-managed env vars from fly.toml#11662

Merged
nbudin merged 2 commits into
mainfrom
remove-ssm-vars-from-fly-toml
Jun 9, 2026
Merged

Remove SSM-managed env vars from fly.toml#11662
nbudin merged 2 commits into
mainfrom
remove-ssm-vars-from-fly-toml

Conversation

@nbudin

@nbudin nbudin commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Purpose

Now that Chamber is working correctly and pulling secrets from SSM at runtime, there's no reason to keep those same values duplicated in fly.toml. Having them in both places means changes to those values require a re-deploy instead of just an SSM update.

Removed 11 vars that are now managed via SSM: AWS_REGION, ASSETS_HOST, AUTOSCALE_MIN_INSTANCES, AUTOSCALE_MAX_INSTANCES, CLOUDWATCH_LOG_GROUP, INTERCODE_CERTS_NO_WILDCARD_DOMAINS, INTERCODE_HOST, SENTRY_PROFILES_SAMPLE_RATE, SENTRY_TRACES_SAMPLE_RATE, TWILIO_SMS_NUMBER, UPLOADS_HOST.

Kept in fly.toml: the Chamber bootstrap vars (CHAMBER_SERVICE, CHAMBER_AWS_ROLE_ARN) and anything not yet in SSM (DEFAULT_CURRENCY, JSON_LOGGING, MALLOC_ARENA_MAX, RACK_ENV, RAILS_ENV, RAILS_GROUPS, RAILS_LOG_TO_STDOUT, RAILS_MAX_THREADS, RAILS_SERVE_STATIC_FILES, RUBY_YJIT_ENABLE, WEB_CONCURRENCY).

🤖 Generated with Claude Code

nbudin and others added 2 commits June 9, 2026 08:26
These variables are now stored in AWS SSM Parameter Store under the
intercode_production chamber service and are injected at runtime by
chamber. Keeping them in fly.toml is redundant and means changes require
a re-deploy rather than just an SSM update.

Removed: AWS_REGION, ASSETS_HOST, AUTOSCALE_MIN_INSTANCES,
AUTOSCALE_MAX_INSTANCES, CLOUDWATCH_LOG_GROUP,
INTERCODE_CERTS_NO_WILDCARD_DOMAINS, INTERCODE_HOST,
SENTRY_PROFILES_SAMPLE_RATE, SENTRY_TRACES_SAMPLE_RATE,
TWILIO_SMS_NUMBER, UPLOADS_HOST

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Intercode requires DEFAULT_CURRENCY to function, so it belongs in the
Terraform module alongside the other required SSM parameters rather
than hardcoded in fly.toml.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@nbudin nbudin marked this pull request as ready for review June 9, 2026 15:29
@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Code Coverage Report: Only Changed Files listed

Package Base Coverage New Coverage Difference
Overall Coverage 🟢 52.92% 🟢 52.92% ⚪ 0%

Minimum allowed coverage is 0%, this run produced 52.92%

@nbudin nbudin merged commit 34f921a into main Jun 9, 2026
19 checks passed
@nbudin nbudin deleted the remove-ssm-vars-from-fly-toml branch June 9, 2026 15:38
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