ufo 6.3.6 → 6.3.7
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/CHANGELOG.md +3 -0
- data/lib/ufo/cfn/stack/builder/resources/listener_certificate.rb +10 -8
- data/lib/ufo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 564a94e07c4dcf5cdea7b63623f1c5f7741487132fb14d3cfab36ea4c2ccb487
|
|
4
|
+
data.tar.gz: bfd797914511f0ce5750cd0102a9b8d79be50a4daaf4ad7c9b76e0578eb7bccb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c01fae80702562184e0e4a7c43d33ec75ef23d70d94776a8262609278c6ffe3dc32dce11100760f6cb7f63988494c058823b8c3e652065e07c5e75ddcd3ca58c
|
|
7
|
+
data.tar.gz: b5d8b619743945fd793ee7e62c264a9dd17ea16cceb59ccf563ba3f35c7a158a42e1c901882788aea74e56a02c50eabea1c3e6391c833331c7840ad591186658
|
data/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
This project *tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
|
|
5
5
|
|
|
6
|
+
## [6.3.7] - 2022-04-29
|
|
7
|
+
- [#173](https://github.com/tongueroo/ufo/pull/173) fix when ssl certs not used
|
|
8
|
+
|
|
6
9
|
## [6.3.6] - 2022-04-29
|
|
7
10
|
- [#172](https://github.com/tongueroo/ufo/pull/172) support multiple ssl certs
|
|
8
11
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
class Ufo::Cfn::Stack::Builder::Resources
|
|
2
2
|
class ListenerCertificate < ListenerSsl
|
|
3
3
|
def build
|
|
4
|
-
return unless certificates.size >= 1 # already removed firt cert
|
|
4
|
+
return unless certificates && certificates.size >= 1 # already removed firt cert
|
|
5
5
|
{
|
|
6
6
|
Type: "AWS::ElasticLoadBalancingV2::ListenerCertificate",
|
|
7
7
|
Condition: "CreateElbIsTrue",
|
|
@@ -18,13 +18,15 @@ class Ufo::Cfn::Stack::Builder::Resources
|
|
|
18
18
|
|
|
19
19
|
def certificates
|
|
20
20
|
ssl = Ufo.config.elb.ssl
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
21
|
+
if ssl.certificates
|
|
22
|
+
certs = normalize(ssl.certificates)
|
|
23
|
+
# CloudFormation has weird interface
|
|
24
|
+
# Only one cert allowed at the AWS::ElasticLoadBalancingV2::Listener
|
|
25
|
+
# https://stackoverflow.com/questions/54447250/how-to-set-multiple-certificates-for-awselasticloadbalancingv2listener
|
|
26
|
+
# Also note the docs say "You can specify one certificate per resource."
|
|
27
|
+
# But tested and multiple certs here work
|
|
28
|
+
certs[1..-1] # dont include the first one
|
|
29
|
+
end
|
|
28
30
|
end
|
|
29
31
|
end
|
|
30
32
|
end
|
data/lib/ufo/version.rb
CHANGED