Skip to content

Commit

Permalink
fix restructure bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Chandra Reddy authored and Chandra Reddy committed Aug 20, 2024
2 parents 570f79d + f63a747 commit 85ba3d9
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,20 @@

5. Run `tofu init` and then `tofu apply`

6. Check the configuration and confirm the infrastructure before typing 'yes'
6. Check the configuration and confirm the infrastructure before typing 'yes' (If the apply succeeded, everything except for the App Runner services and the containers in the ECR repository will have been created)

7. If the apply succeeded, everything except for the App Runner services and the containers in the ECR repository will have been created
7. 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:

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`
`mysql://admin:[email protected]: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.
8. 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.

10. Go to the apprunner folder (`cd ../apprunner`)
9. Go to the apprunner folder (`cd ../apprunner`)

11. Run `tofu init` and then `tofu apply` to set up the App Runner IAM
10. Run `tofu init` and then `tofu apply` to set up the App Runner IAM

12. Go to the service sub-folder (`cd service`)
11. Copy the output value within the quotes and go to the service sub-folder (`cd service`)

13. Run `tofu init` and then `tofu apply` to set up the App Runner services
12. Run `tofu init` and then `tofu apply` to set up the App Runner services, paste the copied output into the variable

0 comments on commit 85ba3d9

Please sign in to comment.