stackup 1.7.1 → 1.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +17 -0
- data/README.md +1 -1
- data/lib/stackup/main_command.rb +7 -1
- data/lib/stackup/version.rb +1 -1
- data/lib/stackup/yaml.rb +2 -1
- metadata +12 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48207a7fb9a121bb113246ad4a4be125ace21cb48b3998efc11475ffb1b64783
|
4
|
+
data.tar.gz: 4cc7841ae3a55bcfec0891ae91ff905491e172f14f2dd3064f308f56975b4d91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 `$
|
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
|
|
data/lib/stackup/main_command.rb
CHANGED
@@ -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
|
|
data/lib/stackup/version.rb
CHANGED
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
|
-
|
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.
|
4
|
+
version: 1.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
8
|
-
-
|
9
|
-
autorequire:
|
7
|
+
- Danial Pearce
|
8
|
+
- Ahmed Shash
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
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
|
-
-
|
87
|
-
-
|
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.
|
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:
|