Skip to content

Commit

Permalink
Merge pull request #19 from boltops-tools/backend-template
Browse files Browse the repository at this point in the history
update backend key generated default
  • Loading branch information
tongueroo authored Jul 20, 2022
2 parents bfe7921 + 511bada commit 0e929f0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# This file was initially generated by terraspace_plugin_azurerm <%= TerraspacePluginAzurerm::VERSION %>
# Backend Config Variables Docs
# https://terraspace.cloud/docs/config/backend/variables/
#
Expand All @@ -6,9 +7,9 @@
# This is useful because azure storage account names are not allowed special characters and are limited to 24 chars.
terraform {
backend "azurerm" {
resource_group_name = "<%= expansion(':APP-:ENV-:LOCATION') %>"
storage_account_name = "<%= expansion('ts:APP_HASH:SUBSCRIPTION_HASH:LOCATION_HASH:ENV') %>"
resource_group_name = "<%%= expansion(':APP-:ENV-:LOCATION') %>"
storage_account_name = "<%%= expansion('ts:APP_HASH:SUBSCRIPTION_HASH:LOCATION_HASH:ENV') %>"
container_name = "terraform-state"
key = "<%= expansion(':PROJECT/:TYPE_DIR/:APP/:ROLE/:MOD_NAME/:ENV/:EXTRA/:LOCATION/terraform.tfstate') %>"
key = "<%%= expansion(':PROJECT/:LOCATION/:APP/:ROLE/:ENV/:EXTRA/:BUILD_DIR/terraform.tfstate') %>"
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# This file was initially generated by terraspace_plugin_azurerm <%= TerraspacePluginAzurerm::VERSION %>
# Backend Config Variables Docs
# https://terraspace.cloud/docs/config/backend/variables/
#
Expand All @@ -8,5 +9,5 @@
resource_group_name: ":APP-:ENV-:LOCATION",
storage_account_name: "ts:APP_HASH:SUBSCRIPTION_HASH:LOCATION_HASH:ENV",
container_name: "terraform-state",
key: ":PROJECT/:TYPE_DIR/:APP/:ROLE/:MOD_NAME/:ENV/:EXTRA/:LOCATION/terraform.tfstate",
key: ":PROJECT/:LOCATION/:APP/:ROLE/:ENV/:EXTRA/:BUILD_DIR/terraform.tfstate",
)

0 comments on commit 0e929f0

Please sign in to comment.