stackup 1.7.1 → 1.8.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: f74cb61004ec9220d92f5f1d1ff292607b216233bc5aed7668d31027e4e2d2b3
4
- data.tar.gz: 18cce0dfddda4b0870affec164d0d0c9cdb30e2e25f1ea675e3b64bd3385323e
3
+ metadata.gz: 48207a7fb9a121bb113246ad4a4be125ace21cb48b3998efc11475ffb1b64783
4
+ data.tar.gz: 4cc7841ae3a55bcfec0891ae91ff905491e172f14f2dd3064f308f56975b4d91
5
5
  SHA512:
6
- metadata.gz: 38a0621de917ddd7bc2163756c854ad89bae2f79e5b8f1d784e04042b55f4a5a9ea5a84bed89f305c4604efc7c9ccb01ec46c32ec3635e3d03f3148b5b3db0ed
7
- data.tar.gz: ac2b19120472ed87471053394d1383d860939a562aebdf5e17fa2a3fc1290b48397c1dae1d9b6c752d6a0a4fd041716b9c753be42f135661303863e2e471397d
6
+ metadata.gz: 9143a0ef0d496bf9f054aa241f0be4877f6e4b10acc8341364221ebaef747ef39162a7377be91f31f46c0794ab6cbb73132e875a63a76aa6a208b0e20ae74807
7
+ data.tar.gz: 7cd6106353e24e78bd555f6366192fcba0b87e6850ef9a7ca0d0197cc5e4d200e30b0579be9d08f0c9d86d5c5a8db6d0b71de6ee02b83455e22358d18ec2d4ce
data/CHANGES.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # CHANGES
2
2
 
3
+ ## 1.8.1 (2023-09-12)
4
+
5
+ * Addresses rate limiting errors in #87 by configuring the following retry behaviours:
6
+ * Updates `retry_mode` from `legacy` to `standard`
7
+ * Increase the value of `max_attempts` to 50
8
+
9
+ ## 1.8.0 (2022-08-23)
10
+
11
+ * Feature: Add support for ruby 3.1
12
+ * Dev: Upgrade dev setup and base docker image to ruby 3.1
13
+ * Dev: Replace docker-compose dev setup with normal docker
14
+ * Dev: Add helpers to easily test all supported ruby versions locally
15
+
16
+ ## 1.7.2 (2021-12-24)
17
+
18
+ * Upgrade dev setup and base docker image to ruby 3.0
19
+
3
20
  ## 1.7.1 (2021-08-31)
4
21
 
5
22
  * Dependency upgrades. Uplift of release process.
data/README.md CHANGED
@@ -70,7 +70,7 @@ This will:
70
70
  * monitor events until the stack update is complete
71
71
 
72
72
  Requests will retry 3 times by default. After this limit is exceeded, `ERROR: Rate exceeded` failures will be logged.
73
- You can increase the limit using the `--retry-limit` option, or by setting the `$AWS_RETRY_LIMIT` environment variable.
73
+ You can increase the limit using the `--retry-limit` option, or by setting the `$AWS_API_RETRY_LIMIT` environment variable.
74
74
 
75
75
  For more details on usage, see
76
76
 
@@ -90,12 +90,18 @@ module Stackup
90
90
  Stackup(aws_config)
91
91
  end
92
92
 
93
+ # In standard retry_mode max_attempts = 3 so the SDK will only retry twice (initial request + 2 retries)
94
+ # Now we're setting max_attempts = 50 (initial request + 49 retries) which gives us some breathing room
95
+ MAX_SDK_ATTEMPTS = 50
96
+
93
97
  def base_aws_config
94
98
  {
95
99
  :log_level => :debug,
96
100
  :logger => logger,
97
101
  :region => region,
98
- :retry_limit => retry_limit
102
+ :retry_limit => retry_limit,
103
+ :max_attempts => MAX_SDK_ATTEMPTS,
104
+ :retry_mode => "standard"
99
105
  }.reject { |_k, v| v.nil? }
100
106
  end
101
107
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Stackup
4
4
 
5
- VERSION = "1.7.1"
5
+ VERSION = "1.8.1"
6
6
 
7
7
  end
data/lib/stackup/yaml.rb CHANGED
@@ -24,7 +24,8 @@ module Stackup
24
24
  # `!Foo blah` as a shortcut for `{ "Fn::Foo" => blah }`
25
25
  #
26
26
  def load(yaml, filename = nil)
27
- tree = ::YAML.parse(yaml, filename)
27
+ legacy_yaml = Gem::Version.new(RUBY_VERSION) < Gem::Version.new("3.0")
28
+ tree = legacy_yaml ? ::YAML.parse(yaml, filename) : ::YAML.parse(yaml, :filename => filename)
28
29
  return tree unless tree
29
30
 
30
31
  CloudFormationToRuby.create.accept(tree)
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stackup
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.1
4
+ version: 1.8.1
5
5
  platform: ruby
6
6
  authors:
7
- - Mike Williams
8
- - Arvind Kunday
9
- autorequire:
7
+ - Danial Pearce
8
+ - Ahmed Shash
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-08-31 00:00:00.000000000 Z
12
+ date: 2023-09-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sdk-cloudformation
@@ -81,10 +81,10 @@ dependencies:
81
81
  - - ">="
82
82
  - !ruby/object:Gem::Version
83
83
  version: '0'
84
- description:
84
+ description:
85
85
  email:
86
- - mike.williams@rea-group.com
87
- - arvind.kunday@rea-group.com
86
+ - danial.pearce@rea-group.com
87
+ - ahmed.shash@rea-group.com
88
88
  executables:
89
89
  - stackup
90
90
  extensions: []
@@ -122,13 +122,13 @@ homepage: https://github.com/realestate-com-au/stackup
122
122
  licenses:
123
123
  - MIT
124
124
  metadata: {}
125
- post_install_message:
125
+ post_install_message:
126
126
  rdoc_options: []
127
127
  require_paths:
128
128
  - lib
129
129
  required_ruby_version: !ruby/object:Gem::Requirement
130
130
  requirements:
131
- - - "~>"
131
+ - - ">"
132
132
  - !ruby/object:Gem::Version
133
133
  version: '2.6'
134
134
  required_rubygems_version: !ruby/object:Gem::Requirement
@@ -137,8 +137,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  requirements: []
140
- rubygems_version: 3.0.3.1
141
- signing_key:
140
+ rubygems_version: 3.3.7
141
+ signing_key:
142
142
  specification_version: 4
143
143
  summary: Manage CloudFormation stacks
144
144
  test_files: