Skip to content

Commit

Permalink
add azurerm backend to remote-state (#61)
Browse files Browse the repository at this point in the history
* add azurerm backend to remote-state

* Auto Format

* pin provider version to 1.5.0 for spacelift

---------

Co-authored-by: cloudpossebot <[email protected]>
  • Loading branch information
SlavaDevOps and cloudpossebot authored Jan 27, 2023
1 parent 3c7ac8f commit 2ca184a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ In general, PRs are welcome. We follow the typical "fork-and-pull" Git workflow.

## Copyrights

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



Expand Down
2 changes: 1 addition & 1 deletion examples/spacelift/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ terraform {
}
utils = {
source = "cloudposse/utils"
version = ">= 1.5.0"
version = "1.5.0"
}
}
}
10 changes: 9 additions & 1 deletion modules/remote-state/data_source.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
locals {
data_source_backends = ["remote", "s3"]
data_source_backends = ["remote", "s3", "azurerm"]
is_data_source_backend = contains(local.data_source_backends, local.backend_type)

remote_workspace = var.workspace != null ? var.workspace : local.workspace
Expand Down Expand Up @@ -73,6 +73,14 @@ locals {

workspace_key_prefix = local.workspace_key_prefix
}

azurerm = local.ds_backend != "azurerm" ? null : {
resource_group_name = local.backend.resource_group_name
storage_account_name = local.backend.storage_account_name
container_name = local.backend.container_name
key = local.backend.key
}

} # ds_configurations


Expand Down

0 comments on commit 2ca184a

Please sign in to comment.