belt 0.3.17 → 0.3.18

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: d0f68a846160c9f0b0c3ecd69a74a3bf500531098cd29bf77b6a21cea22ece7a
4
- data.tar.gz: 55278ed99e4a8c886e55d12e83ed313aad88ff2953a3258b870e818c22a22a91
3
+ metadata.gz: 065a7879623cef17ebf1f3244d147aa90186ce337612a6e77f2b43f394a42f3f
4
+ data.tar.gz: 1df4985ccf796f9fbe28b19d07ffe592f80d5bdc2350077d4b990fc140f7eaaf
5
5
  SHA512:
6
- metadata.gz: f22fef0b437a5e67f680ae5fc0a72ed9bc286006d635e3bddc68d886722cbdae8040953a8248972c2dbcd545d1eefcef3ce83dfb25c4caae6919afa2e1fafdc0
7
- data.tar.gz: c3e96290df0527f0b6da7c07469d8672c1dd41fcde7832cd2edb0997665b60f5ed69bd253f4189d23a24f28c910dc152d1572a7916aed0bca5a6eb5aea3bcb8c
6
+ metadata.gz: 220746d8b316b233aae167526dae8cb0db4bf65bf598c537ddcf18f5c0cec61680cfbbb63bc98018a31398c07f2e32db233a403f4ede1ab71d3c2fc00efa1f4a
7
+ data.tar.gz: 0ae05a242fecad194a4ad39a4642595a437735ce11845bd27a8cb1b6e2f102f38799a36f453f3fd1171ec4f1fb0ad3d113a28801015b7037d4d0162e203f508d
data/lib/belt/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Belt
4
- VERSION = '0.3.17'
4
+ VERSION = '0.3.18'
5
5
  end
@@ -38,20 +38,22 @@ resource "aws_acm_certificate" "app" {
38
38
  # Key by resource_record_name (not domain_name) because ACM uses the same
39
39
  # validation CNAME for both base domain and wildcard — keying by domain_name
40
40
  # creates duplicate records that Route 53 rejects.
41
+ # Use ellipsis (...) to group duplicates, then take the first element since
42
+ # they're identical anyway.
41
43
  resource "aws_route53_record" "cert_validation" {
42
44
  for_each = local.dns_enabled ? {
43
45
  for dvo in aws_acm_certificate.app[0].domain_validation_options : dvo.resource_record_name => {
44
46
  name = dvo.resource_record_name
45
47
  type = dvo.resource_record_type
46
48
  record = dvo.resource_record_value
47
- }
49
+ }...
48
50
  } : {}
49
51
 
50
52
  zone_id = aws_route53_zone.app[0].zone_id
51
- name = each.value.name
52
- type = each.value.type
53
+ name = each.value[0].name
54
+ type = each.value[0].type
53
55
  ttl = 300
54
- records = [each.value.record]
56
+ records = [each.value[0].record]
55
57
  }
56
58
 
57
59
  resource "aws_acm_certificate_validation" "app" {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: belt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.17
4
+ version: 0.3.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stowzilla