From d32eba090c01d4883e06044dd374c1bd7665eeed Mon Sep 17 00:00:00 2001 From: James Rose Date: Wed, 14 Sep 2022 11:45:21 +0100 Subject: [PATCH] Add Redis setup instructions to infrastructure documentation --- docs/infrastructure.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/infrastructure.md b/docs/infrastructure.md index 31737cada..ca1324231 100644 --- a/docs/infrastructure.md +++ b/docs/infrastructure.md @@ -124,10 +124,11 @@ When a pull request is opened to `main` only the Test stage runs. cf target -o dluhc-core -s staging ``` -3. Create required Postgres and S3 bucket backing services (this will take ~15 mins to finish creating): +3. Create required Postgres, Redis and S3 bucket backing services (this will take ~15 mins to finish creating): ```bash cf create-service postgres tiny-unencrypted-13 dluhc-core-staging-postgres + cf create-service redis micro-6.x dluhc-core-staging-redis cf create-service aws-s3-bucket default dluhc-core-staging-csv-bucket cf create-service aws-s3-bucket default dluhc-core-staging-import-bucket cf create-service aws-s3-bucket default dluhc-core-staging-export-bucket @@ -143,6 +144,7 @@ When a pull request is opened to `main` only the Test stage runs. ```bash cf bind-service dluhc-core-staging dluhc-core-staging-csv-bucket + cf bind-service dluhc-core-staging dluhc-core-staging-redis cf bind-service dluhc-core-staging dluhc-core-staging-import-bucket -c '{"permissions": "read-only"}' cf bind-service dluhc-core-staging dluhc-core-staging-export-bucket -c '{"permissions": "read-write"}' ``` @@ -169,10 +171,11 @@ When a pull request is opened to `main` only the Test stage runs. cf target -o dluhc-core -s production ``` -3. Create required Postgres and S3 bucket backing services (this will take ~15 mins to finish creating): +3. Create required Postgres, Redis and S3 bucket backing services (this will take ~15 mins to finish creating): ```bash cf create-service postgres small-ha-13 dluhc-core-production-postgres + cf create-service redis micro-ha-6.x dluhc-core-production-redis cf create-service aws-s3-bucket default dluhc-core-production-csv-bucket cf create-service aws-s3-bucket default dluhc-core-production-import-bucket cf create-service aws-s3-bucket default dluhc-core-production-export-bucket @@ -188,6 +191,7 @@ When a pull request is opened to `main` only the Test stage runs. ```bash cf bind-service dluhc-core-production dluhc-core-production-csv-bucket + cf bind-service dluhc-core-production dluhc-core-production-redis cf bind-service dluhc-core-production dluhc-core-production-import-bucket -c '{"permissions": "read-only"}' cf bind-service dluhc-core-production dluhc-core-production-export-bucket -c '{"permissions": "read-write"}' ```