terrafying-components 1.16.1 → 1.16.2
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/lib/terrafying/components/dynamicset.rb +4 -3
- data/lib/terrafying/components/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: abc7ffc1ed20de13b8618934cff4733da372d880aee548d5a5e557b5f67dd2a3
|
4
|
+
data.tar.gz: 1ff951aea47e93472b1d58942b3f08b23fb7d1c1fbe279dc14d3400f616149e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6315aa679c2c6a8b089097eb23137bafc61c724a65636f9be35e8a2e1069df8828cbb5cb55722065083369912993882319b9f8029ba0b36671614dff6af7fc8
|
7
|
+
data.tar.gz: 0a53e102db91dd7e86d45841c5fc70bb757d43471ee91e9f02d7c4c3ba236ad20e699e3407ed1f86dcc5500e566c2122ee61516f6ac8f9b51e3fe137d18320af
|
@@ -169,13 +169,14 @@ module Terrafying
|
|
169
169
|
|
170
170
|
def autoscale_on_load_balancer(load_balancer, target_value:, disable_scale_in:)
|
171
171
|
load_balancer.targets.each.with_index do |target, i|
|
172
|
-
|
172
|
+
policy_ident = "#{load_balancer.name}-#{@name}-#{i}".gsub(%r{^(\d)}, '_\1')
|
173
|
+
policy_name = "#{load_balancer.name}-#{@name}-#{i}"
|
173
174
|
lb_arn = load_balancer.id.to_s.gsub(/id/, 'arn_suffix')
|
174
175
|
tg_arn = target.target_group.to_s.gsub(/id/, 'arn_suffix')
|
175
176
|
listener = "aws_lb_listener.#{target.listener.to_s.split('.')[1]}"
|
176
|
-
autoscaling_attachment = "aws_autoscaling_attachment.#{
|
177
|
+
autoscaling_attachment = "aws_autoscaling_attachment.#{policy_ident}"
|
177
178
|
|
178
|
-
resource :aws_autoscaling_policy,
|
179
|
+
resource :aws_autoscaling_policy, policy_ident,
|
179
180
|
name: policy_name,
|
180
181
|
autoscaling_group_name: @asg,
|
181
182
|
policy_type: 'TargetTrackingScaling',
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: terrafying-components
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.16.
|
4
|
+
version: 1.16.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- uSwitch Limited
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-01-
|
11
|
+
date: 2021-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|