Skip to content

misk-aws2-sqs: Auto-populate region from AWS environment#3669

Merged
notmikedavis merged 2 commits intocashapp:masterfrom
notmikedavis:michaeld/sqsflag2
Feb 12, 2026
Merged

misk-aws2-sqs: Auto-populate region from AWS environment#3669
notmikedavis merged 2 commits intocashapp:masterfrom
notmikedavis:michaeld/sqsflag2

Conversation

@notmikedavis
Copy link
Collaborator

@notmikedavis notmikedavis commented Feb 11, 2026

Apply AWS environment default for region to dynamic config, matching the
existing behavior for YAML config. This ensures dynamic config users don't
need to explicitly specify region in their JSON config.

Changes:

  • SubscriptionService now injects AwsRegion and applies it as a default
    after resolving the effective config (both YAML and dynamic)
  • Added tests for region auto-population with both YAML and dynamic config
  • Updated README to clarify that only region is auto-populated (account_id
    is optional and defaults to null, meaning AWS uses the caller's account)

@notmikedavis notmikedavis marked this pull request as ready for review February 11, 2026 17:37
…config

Apply AWS environment default for region to dynamic config, matching the
existing behavior for YAML config. This ensures dynamic config users don't
need to explicitly specify region in their JSON config.

Changes:
- SubscriptionService now injects AwsRegion and applies it as a default
  after resolving the effective config (both YAML and dynamic)
- Added tests for region auto-population with both YAML and dynamic config
- Updated README to clarify that only region is auto-populated (account_id
  is optional and defaults to null, meaning AWS uses the caller's account)
@notmikedavis notmikedavis changed the title misk-aws2-sqs: Auto-populate region and account_id from AWS environment misk-aws2-sqs: Auto-populate region from AWS environment for dynamic config Feb 11, 2026
@notmikedavis notmikedavis changed the title misk-aws2-sqs: Auto-populate region from AWS environment for dynamic config misk-aws2-sqs: Auto-populate region from AWS environment Feb 11, 2026
Copy link
Collaborator

@adrw adrw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG

* If a dynamic config flag is configured and returns a valid config, it completely replaces the YAML config.
* Otherwise, the YAML config is used.
*
* In both cases, if region is not specified in the config, it is populated from the AWS environment.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call, this makes sense

@notmikedavis notmikedavis added this pull request to the merge queue Feb 12, 2026
Merged via the queue into cashapp:master with commit 834a9f8 Feb 12, 2026
14 checks passed
@notmikedavis notmikedavis deleted the michaeld/sqsflag2 branch February 12, 2026 16:15
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.

2 participants