Skip to content

Commit 8cfbc87

Browse files
committed
Make grafana terraform makefile targets more robust: delete .terraform folder always prior to execution
1 parent 04e7c23 commit 8cfbc87

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

services/monitoring/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ grafana/assets: ${REPO_CONFIG_LOCATION}
176176
.PHONY: grafana-import
177177
grafana-import: grafana/assets ## Imports the remote grafana dashboards and datasources FROM YOUR LOCAL MACHINE
178178
@pushd ${REPO_BASE_DIR}/services/monitoring/grafana && \
179+
rm -r ./terraform/.terraform 2>/dev/null | true && \
179180
$(MAKE) terraform-plan && \
180181
$(MAKE) terraform-apply; \
181182
popd > /dev/null

0 commit comments

Comments
 (0)