terrafying-components 2.2.1 → 2.3.3
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 +2 -2
- data/lib/terrafying/components/loadbalancer.rb +1 -1
- data/lib/terrafying/components/prometheus.rb +1 -1
- data/lib/terrafying/components/service.rb +1 -1
- data/lib/terrafying/components/staticset.rb +1 -1
- data/lib/terrafying/components/version.rb +1 -1
- data/lib/terrafying/components/vpn_oidc.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: 3eb7bfb91a4656cc6fdfb225a33c2449190e003a2bbf5555efa33f8e19f2deed
|
4
|
+
data.tar.gz: e89cbf80d6595077531b406aeaaa7adfbc81b50307640da46ce203b8b6a944ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1e67a2338212c3a2bd629061e38afea4284064f6c8ef7200a4500cb1a222a41118cd25d7444685d4de000eeb8b21635cd48efab412094f5c765dd30191e7fc0
|
7
|
+
data.tar.gz: 9d4719fc68fcca1c53655c613607c5d1ddb2cfd884c28888aed8fb42248193412009d09c0d0afc8d4f8aa9b50b4204e8426c403ff2a954c2c298844b75250bb1
|
@@ -33,7 +33,7 @@ module Terrafying
|
|
33
33
|
options = {
|
34
34
|
public: false,
|
35
35
|
eip: false,
|
36
|
-
ami: aws.ami('base-image-fc-
|
36
|
+
ami: aws.ami('base-image-fc-b4b2c239', owners = ['477284023816']),
|
37
37
|
instance_type: 't3a.micro',
|
38
38
|
instances: { min: 1, max: 1, desired: 1, tags: {} },
|
39
39
|
ports: [],
|
@@ -142,7 +142,7 @@ module Terrafying
|
|
142
142
|
protocol: -1,
|
143
143
|
prefix_list_ids: prefix_ids
|
144
144
|
end
|
145
|
-
|
145
|
+
|
146
146
|
def default_egress_rule(ident, security_group)
|
147
147
|
resource :aws_security_group_rule, "#{ident}-default-egress",
|
148
148
|
security_group_id: security_group,
|
@@ -131,8 +131,8 @@ module Terrafying
|
|
131
131
|
|
132
132
|
default_action = port.key?(:action) ? port[:action] : forward_to_tg(port, port_ident, port_name, vpc)
|
133
133
|
|
134
|
-
actions.append(default_action)
|
135
134
|
actions.append(authenticate_oidc(port[:oidc_config])) if !port[:oidc_config].nil?
|
135
|
+
actions.append(default_action)
|
136
136
|
|
137
137
|
ssl_options = alb_certs(port, port_ident)
|
138
138
|
|
@@ -377,7 +377,7 @@ module Terrafying
|
|
377
377
|
def create_thanos_cloudwatch_alert(service)
|
378
378
|
service.load_balancer.targets.each_with_index do |target, i|
|
379
379
|
cloudwatch_alarm "#{service.name}_#{i}", 'AWS/NetworkELB',
|
380
|
-
LoadBalancer: output_of('aws_lb', service.load_balancer.name, 'arn_suffix'),
|
380
|
+
LoadBalancer: output_of('aws_lb', service.load_balancer.name.gsub(%r{^(\d)}, '_\1'), 'arn_suffix'),
|
381
381
|
TargetGroup: target.target_group.to_s.gsub(/id/, 'arn_suffix')
|
382
382
|
end
|
383
383
|
end
|
@@ -41,7 +41,7 @@ module Terrafying
|
|
41
41
|
|
42
42
|
def create_in(vpc, name, options = {})
|
43
43
|
options = {
|
44
|
-
ami: aws.ami('base-image-fc-
|
44
|
+
ami: aws.ami('base-image-fc-b4b2c239', owners = ['477284023816']),
|
45
45
|
instance_type: 't3a.micro',
|
46
46
|
ports: [],
|
47
47
|
instances: [{}],
|
@@ -38,7 +38,7 @@ module Terrafying
|
|
38
38
|
options = {
|
39
39
|
public: false,
|
40
40
|
eip: false,
|
41
|
-
ami: aws.ami('base-image-fc-
|
41
|
+
ami: aws.ami('base-image-fc-b4b2c239', owners = ['477284023816']),
|
42
42
|
instance_type: 't3a.micro',
|
43
43
|
subnets: vpc.subnets.fetch(:private, []),
|
44
44
|
ports: [],
|
@@ -268,7 +268,7 @@ module Terrafying
|
|
268
268
|
optional_volumes << "/etc/ssl/#{ca.name}:/etc/ssl/#{ca.name}" if ca
|
269
269
|
|
270
270
|
Ignition.container_unit(
|
271
|
-
'openvpn-authz', 'quay.io/uswitch/openvpn-authz:2.
|
271
|
+
'openvpn-authz', 'quay.io/uswitch/openvpn-authz:2.2',
|
272
272
|
volumes: optional_volumes + [
|
273
273
|
'/etc/ssl/openvpn:/etc/ssl/openvpn',
|
274
274
|
'/var/openvpn-authz:/var/openvpn-authz'
|
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: 2.
|
4
|
+
version: 2.3.3
|
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-
|
11
|
+
date: 2021-02-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|