terraspace_plugin_azurerm 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/templates/hcl/project/config/terraform/backend.tf +1 -1
- data/lib/templates/ruby/project/config/terraform/backend.rb +1 -1
- data/lib/terraspace_plugin_azurerm/interfaces/expander.rb +1 -1
- data/lib/terraspace_plugin_azurerm/interfaces/summary.rb +1 -1
- data/lib/terraspace_plugin_azurerm/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e19cd746bce18ab10dbb8a93822e4c4788c82fa4af05435d4b8379cb3d70c2a
|
4
|
+
data.tar.gz: 3fecf314fbf470aca4d3154ac97ef5c5e60313b88cd65d3f7b47a4739066908d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37c699c0fef8eaed8d1ead25d06ecd4269079d57cd6523d7273a3a45660033b448d46173642298cf282e54f6ef4bfab3de2d808dce81bc91bfe5898c201b13d4
|
7
|
+
data.tar.gz: 92007fd05e2820ec8a9ef4c58691775c6541fca66241f56d140cb33cc4cdec572ebf76eb72d122e88c018b1db45b24c00e0574214a77e5746e903e3ae83c1360
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,9 @@
|
|
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.2.1]
|
7
|
+
- set prefix to @folder for performance improvement
|
8
|
+
|
6
9
|
## [0.2.0]
|
7
10
|
- #1 include layer interface, update template to use expansion method, add region method
|
8
11
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# SUBSCRIPTION_HASH is a short 4-char consistent hash of the longer subscription id.
|
2
|
-
# This is useful because azure storage
|
2
|
+
# This is useful because azure storage account names are not allowed special characters and are limited to 24 chars.
|
3
3
|
terraform {
|
4
4
|
backend "azurerm" {
|
5
5
|
resource_group_name = "<%= expansion('terraform-resources-:LOCATION') %>"
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# SUBSCRIPTION_HASH is a short 4-char consistent hash of the longer subscription id.
|
2
|
-
# This is useful because azure storage
|
2
|
+
# This is useful because azure storage account names are not allowed special characters and are limited to 24 chars.
|
3
3
|
backend("azurerm",
|
4
4
|
resource_group_name: "terraform-resources-:LOCATION",
|
5
5
|
storage_account_name: "ts:SUBSCRIPTION_HASH:LOCATION:ENV",
|
@@ -23,7 +23,7 @@ module TerraspacePluginAzurerm::Interfaces
|
|
23
23
|
end
|
24
24
|
|
25
25
|
# subscription_hash is a short 4-char consistent hash of the longer subscription id.
|
26
|
-
# This is useful because azure storage
|
26
|
+
# This is useful because azure storage account names are not allowed special characters and are limited to 24 chars.
|
27
27
|
# NOTE: be careful to not change this! or else state path will change
|
28
28
|
def subscription_hash
|
29
29
|
Digest::SHA1.hexdigest(subscription)[0..3]
|
@@ -53,7 +53,7 @@ module TerraspacePluginAzurerm::Interfaces
|
|
53
53
|
|
54
54
|
# Friendly error handling for user
|
55
55
|
def list_blobs(container_name, marker:)
|
56
|
-
blob_client.list_blobs(container_name, marker: marker)
|
56
|
+
blob_client.list_blobs(container_name, marker: marker, prefix: @folder)
|
57
57
|
rescue Azure::Core::Http::HTTPError => e
|
58
58
|
if e.message.include?("AuthenticationFailed")
|
59
59
|
logger.error "e.class #{e.class}: #{e.message}"
|
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.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tung Nguyen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-09-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: azure-storage-blob
|