Hello. I have set up separate prod and dev accounts in aws organisation. My CI/CD process in Github Actions is to initialize and pull dev (which has a new feature, for example, added table), then initialize prod and push to prod.
I am using the bash scripts from docs (https://docs.amplify.aws/cli/usage/headless/).
However, on amplify push, I'm getting the error 🛑 Could not load configuration.
Do you have any ideas why that could happen?
- name: Install amplify cli
run: npm install -g @aws-amplify/cli
- name: Configure AWS Credentials from DEV account
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: arn:aws:iam::XXXX:role/GithubAccessDev
aws-region: us-east-1
- name: Initialise DEV env
run: bash init-dev.sh
- name: Pull DEV env
run: bash pull-dev.sh
- name: Configure AWS Credentials from PROD account
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: arn:aws:iam::XXXX:role/GithubAccessProd
aws-region: us-east-1
- name: Initialise PROD env
run: bash init-prod.sh
- name: Push PROD env
run: bash push-prod.sh