Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mrnicegyu11 committed Jan 9, 2025
1 parent 3404851 commit 73c384f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion services/monitoring/grafana/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ $(TF_STATE_FILE): $(REPO_CONFIG_LOCATION) terraform/main.tf
if [ "$${GRAFANA_TERRAFORM_STATE_BACKEND_TYPE}" = "local" ]; then \
terraform -chdir=./terraform init; \
else \
terraform -chdir=./terraform init -backend-config="access_key=$${GRAFANA_TERRAFORM_STATE_BACKEND_AWS_ACCESS_KEY_ID}" -backend-config="secret_key=$${GRAFANA_TERRAFORM_STATE_BACKEND_AWS_SECRET_ACCESS_KEY}"; \
terraform -chdir=./terraform init -backend-config="access_key=$${TF_GRAFANA_STATE_BACKEND_AWS_ACCESS_KEY_ID}" -backend-config="secret_key=$${TF_GRAFANA_STATE_BACKEND_AWS_SECRET_ACCESS_KEY}"; \
fi

terraform/plan.cache:
Expand Down
4 changes: 2 additions & 2 deletions services/monitoring/grafana/terraform/main.tf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ terraform {
key = "{{ GRAFANA_TERRAFORM_STATE_BACKEND_S3_KEY }}"
use_lockfile = true
encrypt = false
bucket = "{{ TF_STATE_S3_BUCKET_NAME }}"
region = "{{ TF_STATE_S3_REGION }}"
bucket = "{{ TF_GRAFANA_STATE_BACKEND_S3_BUCKET_NAME }}"
region = "{{ TF_GRAFANA_STATE_BACKEND_AWS_REGION }}"
{% if GRAFANA_TERRAFORM_STATE_BACKEND_S3_ENDPOINT %}
endpoints = {
s3 = "{{ GRAFANA_TERRAFORM_STATE_BACKEND_S3_ENDPOINT }}"
Expand Down

0 comments on commit 73c384f

Please sign in to comment.