@@ -117,33 +117,33 @@ repository, follow the instructions for `Update Project Config` and skip down to
117
117
` Visualize TerraHub Components ` . This way you will fast forward through terrahub
118
118
components creation and customization, and switch directly to the automation part.
119
119
120
- ## Create TerraHub Components from Templates
120
+ ## Update TerraHub's Project Config
121
121
122
- Run the following command in terminal:
122
+ Run the following commands in terminal:
123
123
``` 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} "
131
129
```
132
130
133
131
Your output should be similar to the one below:
134
132
```
135
133
✅ Done
136
134
```
137
135
138
- ## Update Project Config
136
+ ## Create TerraHub Components from Templates
139
137
140
- Run the following commands in terminal:
138
+ Run the following command in terminal:
141
139
``` 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
147
147
```
148
148
149
149
Your output should be similar to the one below:
0 commit comments