Skip to content

Commit f6f732e

Browse files
committed
deploy.yml 디버깅용: 실제 IAM 사용자 확인
1 parent 2a57b9a commit f6f732e

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ on:
77
- main
88

99
permissions:
10-
id-token: write
11-
contents: read
10+
contents: read # ✅ OIDC 인증 방지 → 'id-token: write' 제거됨
1211

1312
jobs:
1413
deploy:
@@ -68,10 +67,11 @@ jobs:
6867
aws-region: us-east-1
6968
mask-aws-account-id: true
7069

71-
- name: Verify AWS credentials and permissions
70+
- name: 🕵️ Verify current IAM identity
71+
run: aws sts get-caller-identity # ✅ 디버깅용: 실제 IAM 사용자 확인
72+
73+
- name: Verify AWS permissions
7274
run: |
73-
echo "Verifying AWS credentials..."
74-
aws sts get-caller-identity
7575
echo "Checking CloudFront permissions..."
7676
aws cloudfront list-distributions --max-items 1
7777
echo "Checking S3 permissions..."
@@ -92,4 +92,4 @@ jobs:
9292
echo "Waiting for invalidation to complete..."
9393
aws cloudfront wait invalidation-completed \
9494
--distribution-id $CLOUDFRONT_ID \
95-
--id $INVALIDATION_ID
95+
--id $INVALIDATION_ID

0 commit comments

Comments
 (0)