Skip to content

Commit 6e54fce

Browse files
fix: specify TF workspace when terraform init (#364)
1 parent 59f4141 commit 6e54fce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

buildspec.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ phases:
4747
# synthesize the js into terraform json with the proper node environment
4848
- 'if [ "$GIT_BRANCH" = "$DEV_BRANCH" ]; then NODE_ENV=development npm run synth; else npm run synth; fi'
4949
- cd cdktf.out/stacks/admin-api
50-
- terraform init
50+
- 'if [ "$GIT_BRANCH" = "$DEV_BRANCH" ]; then TF_WORKSPACE=$TF_DEV_WORKSPACE terraform init; else terraform init; fi'
5151
build:
5252
run-as: circleci
5353
commands:

0 commit comments

Comments
 (0)