Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
ucfchandra committed Aug 16, 2024
1 parent f91ffca commit 2ca7791
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

## Instructions

1. Ensure you are authenticated to your AWS account
1. Ensure you are authenticated to your AWS account and have mysql installed on your command line

2. Clone the Repository

Expand All @@ -15,4 +15,12 @@

6. Check the configuration and confirm the infrastructure before typing 'yes'

7. The process will fail with errors. If the errors are all related to AppRunner, then the process has succeeded. It is now necessary to push a container image to the ECR repository with the correct database url attached.
7. The process will fail with errors. If the errors are all related to AppRunner, then the process has succeeded.

8. It is now necessary to push a container image to the ECR repository with the correct database url attached. To do so, change the `[ENV]_DATABASE_URL` secret in the app's Github Actions secret to a string of the form:

`mysql://admin:password@shared-rds-instance.c9o06ok6uz10.us-east-1.rds.amazonaws.com:3306/announcements_qa`

Replace the URL in the middle with the proper endpoint of your database and replace "announcements" with your app name and "qa" with the environment name.

9. Commit a change to the `stages/dev` branch of the app repository so Github Actions can send the container image to ECR where App Runner will pull it from.

0 comments on commit 2ca7791

Please sign in to comment.