terraspace_plugin_aws 0.2.1 → 0.2.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02f00424891d3dd2fb55d6c26a3b0f70fd423e5bace9e69c31557a8184c8d657
|
4
|
+
data.tar.gz: a67b077f4eacfea2ad50e7111573183d7f54be493260482c17dd3f80063f9c87
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be16aac9b487ce05c885aa8dab761481792cb7fbbb29e46d3280f2d2caf204a62e64401d7f0bb7a77ee82edeb947705f42dbd46d8813ec4a991138a3278711ce
|
7
|
+
data.tar.gz: 5a519f3d261f8406196a1251fce341779ec521fbef270eda820577a37b7be20a0411861160a687571f708d396a16140eac46afbac1496a5ea7dab154d716803f
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,10 @@
|
|
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.2]
|
7
|
+
- #4 default access logging to false
|
8
|
+
- set prefix to @folder for performance improvement
|
9
|
+
|
6
10
|
## [0.2.1]
|
7
11
|
- #3 quiet s3-secure messages
|
8
12
|
|
data/README.md
CHANGED
@@ -24,7 +24,7 @@ TerraspacePluginAws.configure do |config|
|
|
24
24
|
config.s3.enforce_ssl = true
|
25
25
|
config.s3.versioning = true
|
26
26
|
config.s3.lifecycle = true
|
27
|
-
config.s3.access_logging =
|
27
|
+
config.s3.access_logging = false # false by default
|
28
28
|
config.s3.secure_existing = false # run the security controls on existing buckets. by default, only run on newly created bucket the first time
|
29
29
|
|
30
30
|
config.dynamodb.encryption = true
|
@@ -20,7 +20,7 @@ module TerraspacePluginAws::Interfaces
|
|
20
20
|
c.s3.enforce_ssl = true
|
21
21
|
c.s3.versioning = true
|
22
22
|
c.s3.lifecycle = true
|
23
|
-
c.s3.access_logging =
|
23
|
+
c.s3.access_logging = false
|
24
24
|
c.s3.secure_existing = false # run the security controls on existing buckets. by default, only run on newly created bucket the first time
|
25
25
|
|
26
26
|
c.dynamodb = ActiveSupport::OrderedOptions.new
|
@@ -5,7 +5,7 @@ module TerraspacePluginAws::Interfaces
|
|
5
5
|
|
6
6
|
# interface method
|
7
7
|
def download
|
8
|
-
resp = s3.list_objects(bucket: @bucket)
|
8
|
+
resp = s3.list_objects(bucket: @bucket, prefix: @folder)
|
9
9
|
resp.contents.each do |content|
|
10
10
|
local_path = "#{@dest}/#{content.key}"
|
11
11
|
FileUtils.mkdir_p(File.dirname(local_path))
|
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.2.
|
4
|
+
version: 0.2.2
|
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-09-
|
11
|
+
date: 2020-09-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-dynamodb
|