You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Make sure you have already created the S3 bucket and ECR repository. Refer to the [README.md](./README.md) for more information.
12
+
- Make sure you have already created environment variables and secrets in the repository settings. Refer to the [README.md](./README.md) for more information.
13
+
9
14
## First Deployment
10
15
11
-
Fill the secrets and variables in github actions secrets and variables. those are:
12
-
13
-
Repository secrets:
14
-
15
-
-`AWS_ACCESS_KEY_ID`
16
-
-`AWS_SECRET_ACCESS_KEY`
17
-
-`COINGECKO_API_KEY`
18
-
-`DATALAYER_HASURA_ADMIN_SECRET`
19
-
-`DATALAYER_PG_PASSWORD`
20
-
-`DATALAYER_PG_USER`
21
-
-`ECR_REGISTRY`
22
-
23
-
Repository Variables:
24
-
25
-
-`APP_NAME`
26
-
-`AWS_REGION`
27
-
-`TERRAFORM_VARS` (Mostly all the changes will be just the image tags)
Once variables are set, you can deploy the first time by running the `Deploy to AWS (First deployment)` workflow.
135
-
136
-
Follow this instructions to make the first deployment work:
137
-
138
-
1. Log in to your AWS account
139
-
2. Copy your database endpoint from RDS > Databases > gitcoin-data-layer-staging-rds > Connectivity and security > Endpoint
140
-
3. Go to EC2 > Instances > gitcoin-data-layer-production-bastion > Connect > Session Manager > Connect ( IF YOU CAN’T USE `SessionManager` try rebooting the instance)
141
-
4. Once in the terminal run:
16
+
### Steps
17
+
18
+
1. Run `Deploy to AWS` workflow, and wait until it finishes.
19
+
2. Log in to your AWS account
20
+
3. Copy your database endpoint from RDS > Databases > gitcoin-data-layer-staging-rds > Connectivity and security > Endpoint
21
+
4. Go to EC2 > Instances > gitcoin-data-layer-production-bastion > Connect > Session Manager > Connect ( IF YOU CAN’T USE `SessionManager` try rebooting the instance)
22
+
5. Once in the terminal run:
142
23
143
24
1. sudo su
144
25
2. cd ~
@@ -238,9 +119,10 @@ Follow this instructions to make the first deployment work:
5.Run`Promote Blue Green (Start upgrade - Step 2)`workflow
257
-
6.Validatethatisstableandworking (Youcanrollbackrunningagain`Promote Blue Green (Start upgrade - Step 2)`)
258
-
7.Onceyouaresurethatthenewdeploymentisstable, youcandestroytheolddeploymentbyrunning`Destroy Blue Green (Start upgrade - Step 3)`workflow
137
+
5.Waituntilthenewdeploymentisstable.
138
+
6.Run`Promote Blue Green (Start upgrade - Step 2)`workflow
139
+
7.Validatethatisstableandworking, youcangotothehasuraapitaskonECSandgettheIPaddressofthetaskandcheckiftheapiisworking. (Youcanrollbackrunningagain`Promote Blue Green (Start upgrade - Step 2)`)
140
+
8.Onceyouaresurethatthenewdeploymentisstable, youcandestroytheolddeploymentbyrunning`Destroy Blue Green (Start upgrade - Step 3)`workflow
0 commit comments