From 9816b9271ae40a4215c1bf468f07a7eebd444d11 Mon Sep 17 00:00:00 2001 From: freddieptf Date: Wed, 18 Dec 2024 15:38:32 +0300 Subject: [PATCH] configurable MFA id --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4d205149..003d8b57 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -24,7 +24,7 @@ jobs: - id: auth name: Authenticate to STS run: | - mfa_serial="arn:aws:iam::${{vars.AWS_ACCOUNT_NUMBER}}:mfa/gh-action" + mfa_serial="arn:aws:iam::${{vars.AWS_ACCOUNT_NUMBER}}:mfa/${{vars.MFA_ID}}" mfa_code=$(oathtool -b --totp ${{secrets.MFA_KEY}}) STS=$(aws sts get-session-token --region "${{vars.AWS_REGION}}" --serial-number "$mfa_serial" --token-code "$mfa_code")