Skip to content

Commit 2ca184a

Browse files
add azurerm backend to remote-state (#61)
* add azurerm backend to remote-state * Auto Format * pin provider version to 1.5.0 for spacelift --------- Co-authored-by: cloudpossebot <11232728+cloudpossebot@users.noreply.github.com>
1 parent 3c7ac8f commit 2ca184a

3 files changed

Lines changed: 11 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ In general, PRs are welcome. We follow the typical "fork-and-pull" Git workflow.
504504

505505
## Copyrights
506506

507-
Copyright © 2021-2022 [Cloud Posse, LLC](https://cloudposse.com)
507+
Copyright © 2021-2023 [Cloud Posse, LLC](https://cloudposse.com)
508508

509509

510510

examples/spacelift/versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ terraform {
1212
}
1313
utils = {
1414
source = "cloudposse/utils"
15-
version = ">= 1.5.0"
15+
version = "1.5.0"
1616
}
1717
}
1818
}

modules/remote-state/data_source.tf

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

55
remote_workspace = var.workspace != null ? var.workspace : local.workspace
@@ -73,6 +73,14 @@ locals {
7373

7474
workspace_key_prefix = local.workspace_key_prefix
7575
}
76+
77+
azurerm = local.ds_backend != "azurerm" ? null : {
78+
resource_group_name = local.backend.resource_group_name
79+
storage_account_name = local.backend.storage_account_name
80+
container_name = local.backend.container_name
81+
key = local.backend.key
82+
}
83+
7684
} # ds_configurations
7785

7886

0 commit comments

Comments
 (0)