terraspace_plugin_azurerm 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 902f57dc75e9d5bb10cc082b3c5f27e3f882b1e111ef55c56b45b3120925d83d
4
- data.tar.gz: 7c5b01e7c9d867579f6aacc518f2409f778189b1d97d3069123840cb62035ff1
3
+ metadata.gz: 9e19cd746bce18ab10dbb8a93822e4c4788c82fa4af05435d4b8379cb3d70c2a
4
+ data.tar.gz: 3fecf314fbf470aca4d3154ac97ef5c5e60313b88cd65d3f7b47a4739066908d
5
5
  SHA512:
6
- metadata.gz: f440039512eb3f083b8ad5d8a82d4135495823909b40f7e7df9b20df5b4f17e9600e1a2e569f149c9f9b7544b10a019da26c70a4ff3dbcd5657f572b15b72e32
7
- data.tar.gz: ab20ce488477524db6f7aa968101c7580114b3fcebb6356014ac27af0407a90003a209de94611c09b6eb3baed5a67d66de234c9c1d44fdd5fefc238ee91bf899
6
+ metadata.gz: 37c699c0fef8eaed8d1ead25d06ecd4269079d57cd6523d7273a3a45660033b448d46173642298cf282e54f6ef4bfab3de2d808dce81bc91bfe5898c201b13d4
7
+ data.tar.gz: 92007fd05e2820ec8a9ef4c58691775c6541fca66241f56d140cb33cc4cdec572ebf76eb72d122e88c018b1db45b24c00e0574214a77e5746e903e3ae83c1360
@@ -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 accounts not allowed special characters and can only be 24 chars long.
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 accounts not allowed special characters and can only be 24 chars long.
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 accounts not allowed special characters and can only be 24 chars long.
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}"
@@ -1,3 +1,3 @@
1
1
  module TerraspacePluginAzurerm
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
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.2.0
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-08-20 00:00:00.000000000 Z
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