Skip to content

Commit d7a4400

Browse files
rootroot
authored andcommitted
fix bugs
1 parent d88be42 commit d7a4400

File tree

2 files changed

+2
-22
lines changed

2 files changed

+2
-22
lines changed

README.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -204,12 +204,6 @@ terrahub configure -i demo_function -c component.template.variable -D -y
204204
terrahub configure -i demo_function -c component.template.output -D -y
205205
terrahub configure -i demo_function -c component.template.output.id.value='${google_cloudfunctions_function.demo_function.id}'
206206
terrahub configure -i demo_function -c component.template.output.trigger_url.value='${google_cloudfunctions_function.demo_function.https_trigger_url}'
207-
terrahub configure -i demo_function -c build.env.variables.THUB_LAMBDA_ZIP='demo.zip'
208-
terrahub configure -i demo_function -c build.env.variables.THUB_BUILD_PATH='../demo_object'
209-
terrahub configure -i demo_function -c build.env.variables.THUB_BUILD_OK='true'
210-
terrahub configure -i demo_function -c build.phases.post_build.commands[0]='echo "BUILD: Running post_build step"'
211-
terrahub configure -i demo_function -c build.phases.post_build.commands[1]='rm ${THUB_BUILD_PATH}/${THUB_LAMBDA_ZIP}'
212-
terrahub configure -i demo_function -c build.phases.post_build.finally[0]='echo "BUILD: post_build step successful"'
213207
```
214208

215209
Your output should be similar to the one below:
@@ -237,9 +231,8 @@ Project: demo-terraform-automation-google
237231

238232
Run the following command in terminal:
239233
```shell
240-
terrahub build -i=demo_object && \
241-
terrahub run -a -y && \
242-
terrahub build -i=demo_function
234+
terrahub build -i demo_object
235+
terrahub run -a -y
243236
```
244237

245238
Your output should be similar to the one below:

demo_function/.terrahub.yml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,3 @@ component:
3737
value: '${google_cloudfunctions_function.demo_function.id}'
3838
trigger_url:
3939
value: '${google_cloudfunctions_function.demo_function.https_trigger_url}'
40-
build:
41-
env:
42-
variables:
43-
THUB_LAMBDA_ZIP: demo.zip
44-
THUB_BUILD_PATH: ../demo_object
45-
THUB_BUILD_OK: true
46-
phases:
47-
post_build:
48-
commands:
49-
- 'echo "BUILD: Running post_build step"'
50-
- 'rm ${THUB_BUILD_PATH}/${THUB_LAMBDA_ZIP}'
51-
finally:
52-
- 'echo "BUILD: post_build step successful"'

0 commit comments

Comments
 (0)