특정 프로젝트의 리포지토리를 이전한 후, 최초의 배포 시도에서 AWS 인증 에러가 발생하였다.
Settings
> Security
> Secrets and variables
> action
에 repository secrets을 추가해 줌name: Example workflow
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-west-2
- name: Deploy to AWS Elastic Beanstalk
run: |
eb init my-application --platform node.js
eb deploy
위 방법을 따라 AWS 자격 증명 정보를 등록하고 Github Actions Workflow 파일을 수정하면, 깃허브에서 AWS region 인증 오류를 해결할 수 있다.