From b826e473b953aa1870ed585a50185496cb75c707 Mon Sep 17 00:00:00 2001 From: Schamil Wackenhut Date: Tue, 19 Jan 2021 11:09:47 +0100 Subject: [PATCH] fix vars --- infrastructure/modules/storage/remote_state.tf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/infrastructure/modules/storage/remote_state.tf b/infrastructure/modules/storage/remote_state.tf index b9da03c..28f826e 100644 --- a/infrastructure/modules/storage/remote_state.tf +++ b/infrastructure/modules/storage/remote_state.tf @@ -8,9 +8,9 @@ locals { data "terraform_remote_state" "environment" { backend = "http" config = { - address="https://gitlab.com/api/v4/projects/22967934/terraform/state/production-environment" - lock_address="https://gitlab.com/api/v4/projects/22967934/terraform/state/production-environment/lock" - unlock_address="https://gitlab.com/api/v4/projects/22967934/terraform/state/production-environment/lock" + address="https://gitlab.com/api/v4/projects/${local.project}/terraform/state/${local.environment}-environment" + lock_address="https://gitlab.com/api/v4/projects/${local.project}/terraform/state/${local.environment}-environment/lock" + unlock_address="https://gitlab.com/api/v4/projects/${local.project}/terraform/state/${local.environment}-environment/lock" username=local.username password=local.password lock_method="POST"