Skip to content

Commit c60b217

Browse files
committed
include github run ID in AWS assumed identity
1 parent 64339a0 commit c60b217

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/deploy-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181
- uses: aws-actions/configure-aws-credentials@v4
8282
with:
8383
role-to-assume: arn:aws:iam::427040638965:role/GitHubActionsRole
84-
role-session-name: Core_Dev_Deployment
84+
role-session-name: Core_Dev_Deployment_${{ github.run_id }}
8585
aws-region: us-east-1
8686

8787
- name: Publish to AWS

.github/workflows/deploy-prod.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
- uses: aws-actions/configure-aws-credentials@v4
5656
with:
5757
role-to-assume: arn:aws:iam::427040638965:role/GitHubActionsRole
58-
role-session-name: Core_Dev_Prod_Deployment
58+
role-session-name: Core_Dev_Prod_Deployment_${{ github.run_id }}
5959
aws-region: us-east-1
6060
- name: Publish to AWS
6161
run: make deploy_dev
@@ -103,7 +103,7 @@ jobs:
103103
- uses: aws-actions/configure-aws-credentials@v4
104104
with:
105105
role-to-assume: arn:aws:iam::298118738376:role/GitHubActionsRole
106-
role-session-name: Core_Dev_Prod_Deployment
106+
role-session-name: Core_Dev_Prod_Deployment_${{ github.run_id }}
107107
aws-region: us-east-1
108108
- name: Publish to AWS
109109
run: make deploy_prod

0 commit comments

Comments
 (0)