Skip to content

Commit 543fc74

Browse files
committed
revert worksapce
1 parent 7a7606a commit 543fc74

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

terraform/Makefile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,13 @@ lock-provider:
2020
$(tf_cmd) providers lock -platform=darwin_arm64 -platform=darwin_amd64 -platform=linux_amd64 -platform=windows_amd64
2121

2222
workspace:
23-
@echo "Selecting or creating workspace: $(ENVIRONMENT)"
24-
@$(tf_cmd) workspace select $(ENVIRONMENT) || $(tf_cmd) workspace new $(ENVIRONMENT)
25-
@echo "Switched to workspace/environment: $(ENVIRONMENT)"
23+
$(tf_cmd) workspace new $(sub_environment) || $(tf_cmd) workspace select $(sub_environment) && echo "Switched to workspace/environment: $(sub_environment)"
2624

2725
init:
2826
$(tf_cmd) init $(tf_state) -upgrade $(tf_vars)
2927

3028
init-reconfigure:
31-
$(tf_cmd) init -reconfigure $(tf_state) -upgrade
29+
$(tf_cmd) init $(tf_state) -upgrade $(tf_vars) -reconfigure
3230

3331
plan: workspace
3432
$(tf_cmd) plan $(tf_vars)

0 commit comments

Comments
 (0)