-
Notifications
You must be signed in to change notification settings - Fork 434
chore(ci): Add dump of govcloud layer info in verify step #5415
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 4 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
00bd9c0
chore(ci): Add dump of govcloud layer info in verify step
77a132a
Merge branch 'develop' into fix/govcloud_verification
leandrodamascena f88dd76
shellcheck updates
50a1ad3
add manual verification
c3f88f6
Update .github/workflows/layer_govcloud_verify.yml
sthulb 671a0d6
Update .github/workflows/layer_govcloud_verify.yml
sthulb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
# GovCloud Layer Verification | ||
# --- | ||
# This workflow queries the GovCloud layer info in production only | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: Layer version to duplicate | ||
type: string | ||
required: true | ||
workflow_call: | ||
inputs: | ||
version: | ||
description: Layer version to duplicate | ||
sthulb marked this conversation as resolved.
Show resolved
Hide resolved
|
||
type: string | ||
required: true | ||
|
||
name: Layer Verification (GovCloud) | ||
run-name: Layer Verification (GovCloud) | ||
|
||
jobs: | ||
commercial: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: write | ||
contents: read | ||
strategy: | ||
matrix: | ||
layer: | ||
- AWSLambdaPowertoolsPythonV3-python38 | ||
- AWSLambdaPowertoolsPythonV3-python39 | ||
- AWSLambdaPowertoolsPythonV3-python310 | ||
- AWSLambdaPowertoolsPythonV3-python311 | ||
- AWSLambdaPowertoolsPythonV3-python312 | ||
arch: | ||
- arm64 | ||
- x86_64 | ||
environment: Prod (Readonly) | ||
steps: | ||
- name: Configure AWS Credentials | ||
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2 | ||
with: | ||
role-to-assume: ${{ secrets.AWS_IAM_ROLE }} | ||
aws-region: us-east-1 | ||
mask-aws-account-id: true | ||
- name: Output ${{ matrix.layer }}-${{ matrix.arch }} | ||
run: | | ||
aws --region us-east-1 lambda get-layer-version-by-arn --arn arn:aws:lambda:us-east-1:017000801446:layer:${{ matrix.layer }}-${{ matrix.arch }}:${{ inputs.version }} --output text | ||
|
||
gov_east: | ||
name: Verify (East) | ||
needs: commercial | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: write | ||
contents: read | ||
strategy: | ||
matrix: | ||
layer: | ||
- AWSLambdaPowertoolsPythonV3-python38 | ||
- AWSLambdaPowertoolsPythonV3-python39 | ||
- AWSLambdaPowertoolsPythonV3-python310 | ||
- AWSLambdaPowertoolsPythonV3-python311 | ||
- AWSLambdaPowertoolsPythonV3-python312 | ||
arch: | ||
- arm64 | ||
- x86_64 | ||
environment: GovCloud Prod (East) | ||
steps: | ||
- name: Configure AWS Credentials | ||
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2 | ||
with: | ||
role-to-assume: ${{ secrets.AWS_IAM_ROLE }} | ||
aws-region: us-gov-east-1 | ||
mask-aws-account-id: true | ||
- name: Verify Layer ${{ matrix.layer }}-${{ matrix.arch }} | ||
id: verify-layer | ||
run: | | ||
aws --region us-gov-east-1 lambda get-layer-version-by-arn --arn 'arn:aws-us-gov:lambda:us-gov-east-1:${{ secrets.AWS_ACCOUNT_ID }}:layer:${{ matrix.layer }}-${{ matrix.arch }}:${{ inputs.version }}' --output text | ||
|
||
gov_west: | ||
name: Verify (West) | ||
needs: commercial | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: write | ||
contents: read | ||
strategy: | ||
matrix: | ||
layer: | ||
- AWSLambdaPowertoolsPythonV3-python38 | ||
- AWSLambdaPowertoolsPythonV3-python39 | ||
- AWSLambdaPowertoolsPythonV3-python310 | ||
- AWSLambdaPowertoolsPythonV3-python311 | ||
- AWSLambdaPowertoolsPythonV3-python312 | ||
arch: | ||
- arm64 | ||
- x86_64 | ||
environment: GovCloud Prod (West) | ||
steps: | ||
- name: Configure AWS Credentials | ||
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2 | ||
with: | ||
role-to-assume: ${{ secrets.AWS_IAM_ROLE }} | ||
aws-region: us-gov-east-1 | ||
mask-aws-account-id: true | ||
- name: Verify Layer ${{ matrix.layer }}-${{ matrix.arch }} | ||
id: verify-layer | ||
run: | | ||
aws --region us-gov-west-1 lambda get-layer-version-by-arn --arn 'arn:aws-us-gov:lambda:us-gov-west-1:${{ secrets.AWS_ACCOUNT_ID }}:layer:${{ matrix.layer }}-${{ matrix.arch }}:${{ inputs.version }}' --output text |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.