-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
prod environment does not exist, consider using add_env command instead #14
Comments
When I use |
Environment names are arbitrary but must exist in AWS, by default While README.md for Github Actions template mentions - name: configure amplify
uses: ambientlight/amplify-cli-action@0.3.0
with:
amplify_command: configure
amplify_env: prod # Environment name that exists in CloudFormation Amplify target
- name: deploy
uses: ambientlight/amplify-cli-action@0.3.0
with:
amplify_command: publish
amplify_env: prod # Environment name that exists in CloudFormation Amplify target See Amplify Docs on adding environments using the command |
I'm also having this issue. I've specified my - name: configure amplify
uses: ambientlight/amplify-cli-action@0.3.0
with:
amplify_command: configure
amplify_env: main
project_dir: client
amplify_cli_version: 6.1.0
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: us-east-2 |
It looks like the following line from # if environment doesn't exist fail explicitly
if [ -z "$(amplify env get --name $6 | grep 'No environment found')" ] ; then
echo "found existing environment $6"
amplify env pull --yes $9
else
echo "$6 environment does not exist, consider using add_env command instead";
exit 1
fi In my local testing, it seems |
why there is no way to specific appid? |
My question too |
No description provided.
The text was updated successfully, but these errors were encountered: