terraspace_plugin_azurerm 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 164c2f861c27f9b9a6427ea7a0bc710a150f8e6d2b95f71249434849aaa4f6b4
4
- data.tar.gz: b1363b09aab88c7453eb1bd88cf0ea9672696e98e33a6ec2ca31fcfb4ecc99a5
3
+ metadata.gz: 4b8afe49e177139cfac89534a20a188a9aeab06860cf9168e807d992b8c16dd5
4
+ data.tar.gz: d8381f24bb4195d9e0757eb9785ccc45b0bb01926d02ae0b81429181d954ff49
5
5
  SHA512:
6
- metadata.gz: d7561f51bb0b4fa310bb7e82a500f80b02c7bbabf3929b6cb340bdc0ad8e9da265ae99d3e11f2744f16955895b60f23528d37aed2bbe4d1891d921a3ff64ecaf
7
- data.tar.gz: 915f012ffa5cd6aef560a4dc5015a4b1ff105085576db06060752238e799c4fb170f33595c99ee8e39755ae135fb8695d772af5961c71dd533cb0d677a766e56
6
+ metadata.gz: 3049881020016ad12a037ed6dbc8016ce886ed56b85b5cd95ee59445ec9f7c3ed5ccb03b1aa5c4754bf872ebd1138c5805119899dad5305e1fbcceee334b10d7
7
+ data.tar.gz: 83cea1898329f512a70b564bbf4c01917c538487288e93045e76a0835731f8db0afaa53b4ee290d9ab30c7d18b15b55248288fdccc777d201c3eb58e92f1f439
data/CHANGELOG.md CHANGED
@@ -3,6 +3,15 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  This project *loosely tries* to adhere to [Semantic Versioning](http://semver.org/).
5
5
 
6
+ ## [0.7.0] - 2022-07-20
7
+ - [#19](https://github.com/boltops-tools/terraspace_plugin_azurerm/pull/19) update backend key generated default
8
+
9
+ ## [0.6.2] - 2022-07-13
10
+ - [#18](https://github.com/boltops-tools/terraspace_plugin_azurerm/pull/18) add backend config variables docs comment
11
+
12
+ ## [0.6.1] - 2022-06-14
13
+ - [#17](https://github.com/boltops-tools/terraspace_plugin_azurerm/pull/17) backend.tf template project variable
14
+
6
15
  ## [0.6.0] - 2022-06-10
7
16
  - [#16](https://github.com/boltops-tools/terraspace_plugin_azurerm/pull/16) update generated backend key and ci interface
8
17
 
@@ -0,0 +1,15 @@
1
+ # This file was initially generated by terraspace_plugin_azurerm <%= TerraspacePluginAzurerm::VERSION %>
2
+ # Backend Config Variables Docs
3
+ # https://terraspace.cloud/docs/config/backend/variables/
4
+ #
5
+ # SUBSCRIPTION_HASH is a short 4-char consistent hash of the longer subscription id.
6
+ # LOCATION_HASH is a short 4-char consistent hash of the longer location.
7
+ # This is useful because azure storage account names are not allowed special characters and are limited to 24 chars.
8
+ terraform {
9
+ backend "azurerm" {
10
+ resource_group_name = "<%%= expansion(':APP-:ENV-:LOCATION') %>"
11
+ storage_account_name = "<%%= expansion('ts:APP_HASH:SUBSCRIPTION_HASH:LOCATION_HASH:ENV') %>"
12
+ container_name = "terraform-state"
13
+ key = "<%%= expansion(':PROJECT/:LOCATION/:APP/:ROLE/:ENV/:EXTRA/:BUILD_DIR/terraform.tfstate') %>"
14
+ }
15
+ }
@@ -1,3 +1,7 @@
1
+ # This file was initially generated by terraspace_plugin_azurerm <%= TerraspacePluginAzurerm::VERSION %>
2
+ # Backend Config Variables Docs
3
+ # https://terraspace.cloud/docs/config/backend/variables/
4
+ #
1
5
  # SUBSCRIPTION_HASH is a short 4-char consistent hash of the longer subscription id.
2
6
  # LOCATION_HASH is a short 4-char consistent hash of the longer location.
3
7
  # This is useful because azure storage account names are not allowed special characters and are limited to 24 chars.
@@ -5,5 +9,5 @@ backend("azurerm",
5
9
  resource_group_name: ":APP-:ENV-:LOCATION",
6
10
  storage_account_name: "ts:APP_HASH:SUBSCRIPTION_HASH:LOCATION_HASH:ENV",
7
11
  container_name: "terraform-state",
8
- key: ":TYPE_DIR/:APP/:ROLE/:MOD_NAME/:ENV/:EXTRA/:LOCATION/terraform.tfstate",
12
+ key: ":PROJECT/:LOCATION/:APP/:ROLE/:ENV/:EXTRA/:BUILD_DIR/terraform.tfstate",
9
13
  )
@@ -1,3 +1,3 @@
1
1
  module TerraspacePluginAzurerm
2
- VERSION = "0.6.0"
2
+ VERSION = "0.7.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: terraspace_plugin_azurerm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-06-10 00:00:00.000000000 Z
11
+ date: 2022-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: armrest
@@ -85,7 +85,7 @@ files:
85
85
  - lib/templates/hcl/module/main.tf
86
86
  - lib/templates/hcl/module/outputs.tf
87
87
  - lib/templates/hcl/module/variables.tf
88
- - lib/templates/hcl/project/config/terraform/backend.tf
88
+ - lib/templates/hcl/project/config/terraform/backend.tf.tt
89
89
  - lib/templates/hcl/project/config/terraform/provider.tf
90
90
  - lib/templates/hcl/stack/main.tf
91
91
  - lib/templates/hcl/stack/outputs.tf
@@ -93,7 +93,7 @@ files:
93
93
  - lib/templates/ruby/module/main.rb
94
94
  - lib/templates/ruby/module/outputs.rb
95
95
  - lib/templates/ruby/module/variables.rb
96
- - lib/templates/ruby/project/config/terraform/backend.rb
96
+ - lib/templates/ruby/project/config/terraform/backend.rb.tt
97
97
  - lib/templates/ruby/project/config/terraform/provider.rb
98
98
  - lib/templates/ruby/stack/main.rb
99
99
  - lib/templates/ruby/stack/outputs.rb
@@ -1,11 +0,0 @@
1
- # SUBSCRIPTION_HASH is a short 4-char consistent hash of the longer subscription id.
2
- # LOCATION_HASH is a short 4-char consistent hash of the longer location.
3
- # This is useful because azure storage account names are not allowed special characters and are limited to 24 chars.
4
- terraform {
5
- backend "azurerm" {
6
- resource_group_name = "<%= expansion(':APP-:ENV-:LOCATION') %>"
7
- storage_account_name = "<%= expansion('ts:APP_HASH:SUBSCRIPTION_HASH:LOCATION_HASH:ENV') %>"
8
- container_name = "terraform-state"
9
- key = "<%= expansion(':TYPE_DIR/:APP/:ROLE/:MOD_NAME/:ENV/:EXTRA/:LOCATION/terraform.tfstate') %>"
10
- }
11
- }