cloudformation-tool 1.5.4 → 1.5.6

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: 1ae64b65c455a7191ad9b62db94567604772ecbf2bb0b9fa53dc07c95e6138e1
4
- data.tar.gz: d2d57d4ef02e6f6caec467cfcc87097a8d67d7e1f0ddadfc332f0297d1564572
3
+ metadata.gz: b6fe474c99b246dc7ef21cf17350a55dbee96917365b7914df003ba1c3e417b8
4
+ data.tar.gz: bddb23119b8048777a0382ba953bc99ee02be8b6424a150ba164ae71283e9c39
5
5
  SHA512:
6
- metadata.gz: c9f902b5a4aaaaccff67142bdf8f48328a090471ff4dc44971aad84b3bb1d38e56ae87a629b73e078ab23a56ebe1fc0567941a2a98e0bd730512167c2fe1bf1d
7
- data.tar.gz: c51731a28eba836d2e1bc6f2853adec569597faa8c417b2df161df2b3b49e4983ed1c938a25229888c17d92aca0005c37665468db0788229035b4c4627e6f588
6
+ metadata.gz: 623f19f7dc807cfbc55a9be2c1300b9784962d805b12051ef3b2b681a2bb3904d345881d8d684356955d36e3dfbf2c5d020581ee7214e4bc2c87d39c1904f3b5
7
+ data.tar.gz: 1f9903c01f0edf91dd61a8d6bd6d8572cab98f0ef9f6c2bd845ee47a971fde37718d3046b3b6cf3ba2af78c3d9154dd5f197157d1f585a4c55b7f273a01e3252
@@ -37,7 +37,7 @@ module CloudFormationTool
37
37
 
38
38
  def get_params
39
39
  params = if param_file
40
- yaml = YAML.load(read_param_file param_file).to_h
40
+ yaml = YAML.load(read_param_file param_file, filename: param_file, permitted_classes: [Date, Symbol]).to_h
41
41
  if param_key
42
42
  raise "Missing parameter section '#{param_key}' in '#{param_file}'!" unless yaml[param_key].is_a? Hash
43
43
  yaml[param_key]
@@ -57,4 +57,4 @@ module CloudFormationTool
57
57
 
58
58
  end
59
59
  end
60
- end
60
+ end
@@ -26,7 +26,7 @@ module CloudFormationTool
26
26
  # remove comments because white space seen between comments can seriously psych Psych
27
27
  text.gsub!(/^#.*\n/,'')
28
28
  text = fixShorthand(text)
29
- @data = YAML.load(text).to_h
29
+ @data = YAML.load(text, filename: @path, permitted_classes: [Date, Symbol]).to_h
30
30
  rescue Psych::SyntaxError => e
31
31
  e.message =~ /line (\d+) column (\d+)/
32
32
  lines = text.split "\n"
@@ -12,7 +12,7 @@ module CloudFormationTool
12
12
  @path = path
13
13
  log "Loading #{path}"
14
14
  begin
15
- @initfile = YAML.load(File.read(path)).to_h
15
+ @initfile = YAML.load(File.read(path), filename: @path, permitted_classes: [Date, Symbol]).to_h
16
16
  rescue Errno::ENOENT => e
17
17
  raise CloudFormationTool::Errors::AppError.new("Error reading #{@path}: " + e.message)
18
18
  end
@@ -1,3 +1,3 @@
1
1
  module CloudFormationTool
2
- VERSION = '1.5.4'
2
+ VERSION = '1.5.6'
3
3
  end
@@ -118,7 +118,8 @@ module CloudFormationTool
118
118
  log "Creating CF template bucket #{name}"
119
119
  awss3.create_bucket({
120
120
  acl: "private",
121
- bucket: name
121
+ bucket: name,
122
+ object_ownership: 'BucketOwnerPreferred'
122
123
  }.merge(if region == 'us-east-1' then {} else { create_bucket_configuration: { location_constraint: region } } end))
123
124
  name
124
125
  else
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudformation-tool
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.4
4
+ version: 1.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oded Arbel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-05 00:00:00.000000000 Z
11
+ date: 2023-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake