We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41ba4d2 commit b2bca93Copy full SHA for b2bca93
.github/workflows/cicd.yml
@@ -21,6 +21,21 @@ jobs:
21
- name: Print VM IP
22
run: |
23
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
39
40
# uses: actions/setup-java@v4
41
# with:
0 commit comments