This repository: https://github.com/manuelsolalindebkv/github_actions_examples.git
https://docs.github.com/en/actions
How to deploy an AWS Amplify app from Github Actions Python App Deploy to AWS App Runner using GitHub Actions
Deploy applications in AWS App Runner with GitHub Actions Guide: https://aws.amazon.com/es/blogs/containers/deploy-applications-in-aws-app-runner-with-github-actions/
Create a .env
file with the following content:
AWS_ACCESS_KEY_ID=<your_aws_access_key_id>
AWS_SECRET_ACCESS_KEY=<your_aws_secret_access_key>
AWS_REGION=us-east-1
Now go to aws_service_role
folder and create the service role:
Note: edit role name as required.
./create_role.sh
Copy the resulting role ARN and add it to the .env
file:
cd infrastructure
export $(cat ../.env | xargs)
pulumi new aws-python
Add github secrets using gh cli, from a .env
file, for a given repository:
export REPO=manuelsolalindebkv/github_actions_examples
gh secret set AWS_ACCESS_KEY_ID -b $(cat .env | grep AWS_ACCESS_KEY_ID | cut -d '=' -f2) -R $REPO
gh secret set AWS_SECRET_ACCESS_KEY -b $(cat .env | grep AWS_SECRET_ACCESS_KEY | cut -d '=' -f2) -R $REPO
gh secret set AWS_REGION -b $(cat .env | grep AWS_REGION | cut -d '=' -f2) -R $REPO
gh secret set ROLE_ARN -b $(cat .env | grep ROLE_ARN | cut -d '=' -f2) -R $REPO