Skip to content

[SVLS-8969] feat(scripts): add fed-us2 environment support to publish_govcloud_layers.sh#1192

Merged
lym953 merged 7 commits intomainfrom
yiming.luo/release-fed-us2
Apr 23, 2026
Merged

[SVLS-8969] feat(scripts): add fed-us2 environment support to publish_govcloud_layers.sh#1192
lym953 merged 7 commits intomainfrom
yiming.luo/release-fed-us2

Conversation

@lym953
Copy link
Copy Markdown
Contributor

@lym953 lym953 commented Apr 20, 2026

Summary

  • Adds fed-us2 as a supported ENVIRONMENT value in publish_govcloud_layers.sh
  • Uses the sso-govcloud-fed-us2-lambda-layer-operator AWS Vault role
  • Matches us1-fed behavior: requires explicit VERSION, enables layer version permissions, disables auto-bump

Testing

Ran the script and published the layers to fed-us2.

lym953 and others added 4 commits April 20, 2026 16:38
@lym953 lym953 marked this pull request as ready for review April 23, 2026 16:29
@lym953 lym953 requested a review from a team as a code owner April 23, 2026 16:29
@lym953 lym953 requested review from Copilot and duncanista and removed request for Copilot April 23, 2026 16:29
@lym953 lym953 changed the title feat(scripts): add fed-us2 environment support to publish_govcloud_layers.sh [SVLS-8969] feat(scripts): add fed-us2 environment support to publish_govcloud_layers.sh Apr 23, 2026
Copilot AI review requested due to automatic review settings April 23, 2026 16:43
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds fed-us2 as a supported target for publish_govcloud_layers.sh, aligning its behavior with us1-fed (explicit VERSION, permissions enabled, no auto-bump).

Changes:

  • Extend ENVIRONMENT handling to accept fed-us2.
  • Configure AWS Vault role and publishing flags for fed-us2.
  • Update usage/help text and unsupported-environment error message.

Comment thread scripts/publish_govcloud_layers.sh
Comment thread scripts/publish_govcloud_layers.sh Outdated
Comment on lines +60 to +61
elif [ $ENVIRONMENT = "fed-us2" ]; then
AWS_VAULT_ROLE=sso-govcloud-fed-us2-lambda-layer-operator
Copy link

Copilot AI Apr 23, 2026

Choose a reason for hiding this comment

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

The elif [ $ENVIRONMENT = "fed-us2" ]; then condition leaves $ENVIRONMENT unquoted. For consistency with the earlier if [ "$ENVIRONMENT" = ... ] and to avoid word-splitting/globbing edge cases, quote it (or use [[ ... ]]).

Copilot uses AI. Check for mistakes.
@lym953
Copy link
Copy Markdown
Contributor Author

lym953 commented Apr 23, 2026

I don't think integration test failures are relevant. Ignoring them.

@lym953 lym953 merged commit e6580ea into main Apr 23, 2026
48 of 55 checks passed
@lym953 lym953 deleted the yiming.luo/release-fed-us2 branch April 23, 2026 20:30
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.

3 participants