-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
8 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |