terraspace_plugin_aws 0.3.0 → 0.3.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 +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/terraspace_plugin_aws/clients.rb +13 -4
- data/lib/terraspace_plugin_aws/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 855a5c7166b24f8881c2d735edd0c252cefd6d0175a9a0f1156090ca08a11e5d
|
|
4
|
+
data.tar.gz: be95c5a77b116c62dac152ec6f8ec9cfb5b68ad372475373823508472bca3566
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 12ff9c7c0fcc8b10d82385855b5a5724392729ef79254cad41fce51b0ddab0d3ec17a927b08da1e071adde23e1c8e1289e48d32f7948753675b6d0fd680596c7
|
|
7
|
+
data.tar.gz: 717dffbad397bb5fd3953739060e5e2ad7bb6d90f842c13ab6f0fb00f5f3cf1b82357ed401b118a2ddde584c9dd6ccdda0712cce493fd2ec0be48433b35f52ab
|
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.3.1] - 2021-12-14
|
|
7
|
+
- [#8](https://github.com/boltops-tools/terraspace_plugin_aws/pull/8) use region configured in the backend.tf for the s3 client
|
|
8
|
+
|
|
6
9
|
## [0.3.0] - 2020-11-15
|
|
7
10
|
- [#5](https://github.com/boltops-tools/terraspace_plugin_aws/pull/5) helper and secrets support
|
|
8
11
|
- aws_secret and aws_ssm helpers
|
|
@@ -8,23 +8,32 @@ module TerraspacePluginAws
|
|
|
8
8
|
extend Memoist
|
|
9
9
|
|
|
10
10
|
def s3
|
|
11
|
-
Aws::S3::Client.new
|
|
11
|
+
Aws::S3::Client.new(client_options)
|
|
12
12
|
end
|
|
13
13
|
memoize :s3
|
|
14
14
|
|
|
15
15
|
def secretsmanager
|
|
16
|
-
Aws::SecretsManager::Client.new
|
|
16
|
+
Aws::SecretsManager::Client.new(client_options)
|
|
17
17
|
end
|
|
18
18
|
memoize :secretsmanager
|
|
19
19
|
|
|
20
20
|
def ssm
|
|
21
|
-
Aws::SSM::Client.new
|
|
21
|
+
Aws::SSM::Client.new(client_options)
|
|
22
22
|
end
|
|
23
23
|
memoize :ssm
|
|
24
24
|
|
|
25
25
|
def dynamodb
|
|
26
|
-
Aws::DynamoDB::Client.new
|
|
26
|
+
Aws::DynamoDB::Client.new(client_options)
|
|
27
27
|
end
|
|
28
28
|
memoize :dynamodb
|
|
29
|
+
|
|
30
|
+
# Typically inferred from AWS_REGION unless set in the backend.tf
|
|
31
|
+
def client_options
|
|
32
|
+
if @info['region']
|
|
33
|
+
{region: @info['region']}
|
|
34
|
+
else
|
|
35
|
+
{}
|
|
36
|
+
end
|
|
37
|
+
end
|
|
29
38
|
end
|
|
30
39
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: terraspace_plugin_aws
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.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:
|
|
11
|
+
date: 2021-12-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aws-sdk-dynamodb
|
|
@@ -206,7 +206,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
206
206
|
- !ruby/object:Gem::Version
|
|
207
207
|
version: '0'
|
|
208
208
|
requirements: []
|
|
209
|
-
rubygems_version: 3.
|
|
209
|
+
rubygems_version: 3.2.32
|
|
210
210
|
signing_key:
|
|
211
211
|
specification_version: 4
|
|
212
212
|
summary: Terraspace AWS Plugin
|