File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,19 +32,19 @@ jobs:
3232 python -m pip install --upgrade pip
3333 pip install -r requirements.txt
3434
35- - name : Configure AWS credentials
36- uses : aws-actions/configure-aws-credentials@v4
37- with :
38- role-to-assume : ${{ github.ref == 'refs/heads/main' && secrets.AWS_ROLE_ARN_PROD || secrets.AWS_ROLE_ARN_DEV }}
39- aws-region : ${{ env.AWS_REGION }}
40-
4135 - name : Debug AWS Role ARN
4236 run : |
4337 echo "Current branch: ${{ github.ref }}"
4438 echo "Using role ARN: ${{ github.ref == 'refs/heads/main' && secrets.AWS_ROLE_ARN_PROD || secrets.AWS_ROLE_ARN_DEV }}"
4539 echo "AWS_ROLE_ARN_DEV exists: ${{ secrets.AWS_ROLE_ARN_DEV != '' }}"
4640 echo "AWS_ROLE_ARN_PROD exists: ${{ secrets.AWS_ROLE_ARN_PROD != '' }}"
4741
42+ - name : Configure AWS credentials
43+ uses : aws-actions/configure-aws-credentials@v4
44+ with :
45+ role-to-assume : ${{ github.ref == 'refs/heads/main' && secrets.AWS_ROLE_ARN_PROD || secrets.AWS_ROLE_ARN_DEV }}
46+ aws-region : ${{ env.AWS_REGION }}
47+
4848 - name : Validate SAM template
4949 run : |
5050 # AWS認証情報の確認
You can’t perform that action at this time.
0 commit comments