Skip to content

Commit 763d32f

Browse files
authored
Merge pull request #10 from TerraHubCorp/dev
minor improvement
2 parents 05c1b83 + ded6f75 commit 763d32f

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -117,33 +117,33 @@ repository, follow the instructions for `Update Project Config` and skip down to
117117
`Visualize TerraHub Components`. This way you will fast forward through terrahub
118118
components creation and customization, and switch directly to the automation part.
119119

120-
## Create TerraHub Components from Templates
120+
## Update TerraHub's Project Config
121121

122-
Run the following command in terminal:
122+
Run the following commands in terminal:
123123
```shell
124-
terrahub component -t aws_vpc -n vpc \
125-
&& terrahub component -t aws_subnet -n subnet_private -o ../vpc \
126-
&& terrahub component -t aws_security_group -n security_group -o ../vpc \
127-
&& terrahub component -t aws_iam_role -n iam_role \
128-
&& terrahub component -t aws_lambda_function -n lambda -o ../iam_role,../security_group,../subnet_private \
129-
&& terrahub component -t aws_api_gateway_rest_api -n api_gateway_rest_api -o ../lambda \
130-
&& terrahub component -t aws_api_gateway_deployment -n api_gateway_deployment -o ../api_gateway_rest_api
124+
terrahub configure -c terraform.version=0.11.11
125+
terrahub configure -c template.provider.aws.region='${local.region}'
126+
terrahub configure -c template.provider.aws.allowed_account_ids[0]='${local.account_id}'
127+
terrahub configure -c template.locals.region="${AWS_DEFAULT_REGION}"
128+
terrahub configure -c template.locals.account_id="${AWS_ACCOUNT_ID}"
131129
```
132130

133131
Your output should be similar to the one below:
134132
```
135133
✅ Done
136134
```
137135

138-
## Update Project Config
136+
## Create TerraHub Components from Templates
139137

140-
Run the following commands in terminal:
138+
Run the following command in terminal:
141139
```shell
142-
terrahub configure -c terraform.version=0.11.11
143-
terrahub configure -c template.provider.aws.region='${local.region}'
144-
terrahub configure -c template.provider.aws.allowed_account_ids[0]='${local.account_id}'
145-
terrahub configure -c template.locals.region="${AWS_DEFAULT_REGION}"
146-
terrahub configure -c template.locals.account_id="${AWS_ACCOUNT_ID}"
140+
terrahub component -t aws_vpc -n vpc \
141+
&& terrahub component -t aws_subnet -n subnet_private -o ../vpc \
142+
&& terrahub component -t aws_security_group -n security_group -o ../vpc \
143+
&& terrahub component -t aws_iam_role -n iam_role \
144+
&& terrahub component -t aws_lambda_function -n lambda -o ../iam_role,../security_group,../subnet_private \
145+
&& terrahub component -t aws_api_gateway_rest_api -n api_gateway_rest_api -o ../lambda \
146+
&& terrahub component -t aws_api_gateway_deployment -n api_gateway_deployment -o ../api_gateway_rest_api
147147
```
148148

149149
Your output should be similar to the one below:

0 commit comments

Comments
 (0)