terrafying-components 1.13.1 → 1.13.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c2d7b541ce7100fd35d3ed8f8dfd322c624c9487dedbca59891a402cc080ec87
|
4
|
+
data.tar.gz: bbb88339e5b517799c54a189acda1fbf799d8b33a1c99c6b3cf4e408f40534ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ce053faaa10c180c85fb27b4d0785e7d2a4694545a7cc7dfdc5522a79ba80d82fc2c9da350327518458f9065881dac3765550b9d56ba6932cc90f6e84d2b22c
|
7
|
+
data.tar.gz: bf99bd56359a08534422da806ca2d74bcbf4b308d6fc0764a35eba4ed5b78e0b6d53a40a91f72426d22bcc175ce334cda14ffb1f62cccc80432c56a01aa98217
|
@@ -70,6 +70,7 @@ module Terrafying
|
|
70
70
|
ports: [],
|
71
71
|
public: false,
|
72
72
|
subnets: vpc.subnets.fetch(:private, []),
|
73
|
+
cross_zone_load_balancing: false,
|
73
74
|
hex_ident: false,
|
74
75
|
idle_timeout: nil,
|
75
76
|
tags: {},
|
@@ -117,6 +118,7 @@ module Terrafying
|
|
117
118
|
tags: @tags
|
118
119
|
}.merge(subnets_for(options[:subnets]))
|
119
120
|
.merge(application? ? { security_groups: [@security_group] + options[:security_groups], idle_timeout: options[:idle_timeout], access_logs: options[:access_logs] } : {})
|
121
|
+
.merge(network? ? { enable_cross_zone_load_balancing: options[:cross_zone_load_balancing] } : {})
|
120
122
|
.compact
|
121
123
|
|
122
124
|
@targets = []
|
@@ -46,6 +46,7 @@ module Terrafying
|
|
46
46
|
ports: [],
|
47
47
|
instances: [{}],
|
48
48
|
zone: vpc.zone,
|
49
|
+
cross_zone_load_balancing: false,
|
49
50
|
iam_policy_statements: [],
|
50
51
|
security_groups: [],
|
51
52
|
keypairs: [],
|
@@ -99,6 +100,8 @@ module Terrafying
|
|
99
100
|
|
100
101
|
if options.key?(:loadbalancer) # explicitly requested or rejected a loadbalancer
|
101
102
|
wants_load_balancer = options[:loadbalancer]
|
103
|
+
elsif options[:cross_zone_load_balancing] # indirect request for an LB
|
104
|
+
wants_load_balancer = true
|
102
105
|
else
|
103
106
|
# by default we want one if we are an ASG with exposed ports
|
104
107
|
wants_load_balancer = set == DynamicSet && @ports.count > 0
|
@@ -125,7 +128,8 @@ module Terrafying
|
|
125
128
|
@load_balancer = add! LoadBalancer.create_in(
|
126
129
|
vpc, name, options.merge(
|
127
130
|
subnets: options[:loadbalancer_subnets],
|
128
|
-
tags: tags
|
131
|
+
tags: tags,
|
132
|
+
cross_zone_load_balancing: options[:cross_zone_load_balancing]
|
129
133
|
)
|
130
134
|
)
|
131
135
|
|
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.13.
|
4
|
+
version: 1.13.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: 2019-
|
11
|
+
date: 2019-08-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|