Skip to content

Commit 081a831

Browse files
authored
feat: support for gcs backends (#95)
1 parent c3b782e commit 081a831

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

modules/remote-state/data-source.tf

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
locals {
2-
data_source_backends = ["remote", "s3", "azurerm"]
2+
data_source_backends = ["remote", "s3", "azurerm", "gcs"]
33
is_data_source_backend = contains(local.data_source_backends, local.backend_type)
44

55
remote_workspace = var.workspace != null ? var.workspace : local.workspace
@@ -93,6 +93,11 @@ locals {
9393
key = local.backend.key
9494
}
9595

96+
gcs = local.ds_backend != "gcs" ? null : {
97+
bucket = local.backend.bucket
98+
prefix = local.backend.prefix
99+
}
100+
96101
} # ds_configurations
97102

98103
}

0 commit comments

Comments
 (0)