Skip to content

Commit b2bca93

Browse files
authored
docs: IAM 사용자 권한 부여 + 인바운드 규칙 임시 추가
1 parent 41ba4d2 commit b2bca93

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/cicd.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,21 @@ jobs:
2121
- name: Print VM IP
2222
run: |
2323
echo ${{ steps.ip.outputs.ipv4 }}
24+
25+
- name: Configure AWS credentials
26+
uses: aws-actions/configure-aws-credentials@v4
27+
with:
28+
aws-access-key-id: ${{ secrets.AWS_IAM_ACCESS_KEY }}
29+
aws-secret-access-key: ${{ secrets.AWS_IAM_ACCESS_SECRET_KEY }}
30+
aws-region: 'ap-northeast-2'
31+
32+
- name: Add GitHub Actions IP
33+
run: |
34+
aws ec2 authorize-security-group-ingress \
35+
--group-id ${{ secrets.AWS_SECURITY_GROUP_ID }} \
36+
--protocol tcp \
37+
--port 22 \
38+
--cidr ${{ steps.ip.outputs.ipv4 }}/32
2439
2540
# uses: actions/setup-java@v4
2641
# with:

0 commit comments

Comments
 (0)