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
Copy file name to clipboardExpand all lines: README.md
+22-14Lines changed: 22 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,38 +32,46 @@ Follow the instructions below in order to deploy from this repository:
32
32
```
33
33
34
34
35
-
>**_NOTE:_**
36
-
You will have to execute the following commands multiple times, passing the region name every time. You will do this for all regions of your global database. For example if your global database is deployed in us-east-1 and us-west-2, then you will have to execute the commands twice with the region parameter as us-east-1 and then again with region parameter as us-west-2.
37
-
38
-
39
-
2. In the root directory, from the command line, run following command, for each region of the global database.
35
+
2. In the root directory, from the command line, run following command. Please make sure you pass **all regions** where your global database clusters are deployed.
36
+
This command will execute the cloudformation template and create all required resources in all passed regions.
This command will execute the cloudformation template and create all required resources in the region.
45
+
46
+
**What do these parameters mean?**
47
+
48
+
The script takes following parameters:
49
+
50
+
**-t OR --template-body**: CloudFormation template file. Defaults to managed0gdb-cft.yml. **(Optional)**
51
+
**-r OR --region-list**: List of regions separated by commas, where the stack will be deployed. **(Required)**
52
+
**-a OR --consent-anonymous-data-collect**: Opt-in or out of anonymous one time data collection.(yes/no). Only collects region name, creation time, stack name and uuid portion of the stack id (for uniqueness). Defaults to accept. **(Optional)**
53
+
**-s OR --stack-name**: CloudFormation Stack Name. **(Required)**
54
+
55
+
>**_NOTE:_**
56
+
You will have to execute the following command multiple times, passing the region name every time. You will do this for all regions of your global database. For example if your global database is deployed in us-east-1 and us-west-2, then you will have to execute the commands twice with the region parameter as us-east-1 and then again with region parameter as us-west-2.
49
57
50
58
51
59
3. Once the cloudformation finishes building resources in all regions, execute the following command, for each region of the global database.
52
60
53
61
```bash
54
-
python3 create_managed_endpoint.py --cluster-cname-pair='{"<global database clustername>":"<desired writer endpoint >"} [,"<global database clustername>":"<desired writer endpoint>"},...]' --hosted-zone-name=<hosted zone name> --region<aws region name>
**-c OR --cluster-cname-pair** : Cluster and writer endpoint pair in '{\"cluname\":\"writer\"}' format. **(Required)**
65
73
**-z OR --hosted-zone-name** : Name of the hosted zone. If one doesn't exist, it will be created. **(Required)**
66
-
**-r OR --region** : Region Name. If no region is provided, default region will be used. **(Optional)**
74
+
**-r OR --region-list** : List of regions separated by commas, where the stack will be deployed. **(Required)**
67
75
**-sv OR --skip-vpc** : Skips adding vpcs in the hosted zone, if using an existing hosted zone. **(Optional)**
68
76
69
77
If you made any mistakes, no worries. You can just re-run it. The script is idempotent. And when you are ready to add a new global cluster, you can just re-run it with the new global-cluster and CNAME pair.
0 commit comments