From f63a747f93e93b2cdad0bd28e8b8eb2e99ac3937 Mon Sep 17 00:00:00 2001 From: ucfchandra <150701106+ucfchandra@users.noreply.github.com> Date: Tue, 20 Aug 2024 15:48:18 -0400 Subject: [PATCH] Update README.md --- README.md | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 9e330b9..e5878f3 100644 --- a/README.md +++ b/README.md @@ -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:password@cm-appfolio-db.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. +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 +13. Run 'tofu init' and then 'tofu apply' to set up the App Runner services, paste the copied output into the variable