Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add azurerm backend to remote-state #61

Merged
merged 4 commits into from
Jan 27, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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