File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Prepare envchain
2
+
3
+ To manage credentials of AWS account, it is recommended to use [ envchain] ( https://github.com/sorah/envchain ) .
4
+
5
+ ```
6
+ $ envchain -s aws-ruby-data-discourse AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY
7
+ aws-ruby-data-discourse.AWS_ACCESS_KEY_ID: <input access key>
8
+ aws-ruby-data-discourse.AWS_SECRET_ACCESS_KEY: <input secret>
9
+ ```
10
+
11
+ # Prepare terraform
12
+
13
+ ```
14
+ $ envchain aws-ruby-data-discourse terraform init
15
+ ```
16
+
17
+ # Select workspace
18
+
19
+ We have two workspaces: (1) ` test ` , and (2) ` prod ` . ` test ` workspace is for testing, and ` prod ` workspace is for production.
20
+
21
+ ```
22
+ $ envchain aws-ruby-data-discourse terraform workspace show
23
+
24
+ $ envchain aws-ruby-data-discourse terraform workspace select test
25
+
26
+ $ envchain aws-ruby-data-discourse terraform workspace select prod
27
+ ```
28
+
29
+ # Execute terraform
30
+
31
+ ```
32
+ $ envchain aws-ruby-data-discourse terraform plan
33
+
34
+ $ envchain aws-ruby-data-discourse terraform apply
35
+ ```
You can’t perform that action at this time.
0 commit comments