From 3dc8fccc28ce7e6a047d866cc1e0a43c6624ec4c Mon Sep 17 00:00:00 2001 From: do-huni Date: Sat, 20 Jul 2024 16:46:18 +0900 Subject: [PATCH] feat(ci): change aws cli install logic --- .github/workflows/deploy-to-master.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/deploy-to-master.yml b/.github/workflows/deploy-to-master.yml index 0e37dd9..becaab8 100644 --- a/.github/workflows/deploy-to-master.yml +++ b/.github/workflows/deploy-to-master.yml @@ -48,6 +48,18 @@ jobs: - name: Set PEM file permissions run: chmod 400 deploy_key.pem + - name: Install AWS CLI + uses: unfor19/install-aws-cli-action@v1 + with: + version: 2 + + - name: Test AWS Credentials + run: aws sts get-caller-identity + env: + AWS_ACCESS_KEY_ID: ${{ env.AWS_ACCESS_KEY }} + AWS_SECRET_ACCESS_KEY: ${{ env.AWS_SECRET_ACCESS_KEY }} + AWS_DEFAULT_REGION: ${{ env.AWS_REGION }} + - name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@v3 with: