Skip to content

Commit 7e6624a

Browse files
committed
workspace
1 parent 01ae179 commit 7e6624a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

terraform/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ lock-provider:
2020
$(tf_cmd) providers lock -platform=darwin_arm64 -platform=darwin_amd64 -platform=linux_amd64 -platform=windows_amd64
2121

2222
workspace:
23+
ifndef sub_environment
24+
$(error sub_environment is not set. Use 'make workspace sub_environment=your-env')
25+
endif
2326
$(tf_cmd) workspace new $(sub_environment) || $(tf_cmd) workspace select $(sub_environment) && echo "Switched to workspace/environment: $(sub_environment)"
2427

2528
init:

0 commit comments

Comments
 (0)