Skip to content

Commit 0b835f5

Browse files
committed
[NRL-760] Get inactive stack when trying to get s3 perms
1 parent 0b7647c commit 0b835f5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/persistent-environment.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ jobs:
6868
- name: Add S3 Permissions to Lambda
6969
run: |
7070
account=$(echo '${{ inputs.environment }}' | cut -d '-' -f1)
71-
make get-s3-perms ENV=${account}
71+
inactive_stack=$(poetry run python ./scripts/get_env_config.py inactive-stack ${{ inputs.environment }})
72+
make get-s3-perms ENV=${account} TF_WORKSPACE_NAME=${inactive_stack}
7273
7374
- name: Save Build Artifacts
7475
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)