cfn-vpn 1.4.2 → 1.4.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e0b8948f3c75911a7850125d4c528e1f305dd53015c8ef7335cd9a1c3b971248
4
- data.tar.gz: 92b27425c4640c6aa73962b752997f135e24fe9184953e04504a27dfc3197be3
3
+ metadata.gz: 54a7ba46c0bd16d5e70bf048aa90e4ea079e8dd5be0e6245afafb4730f804017
4
+ data.tar.gz: 0e9b6ed2c904b6debf40777232f780d15fc12904abc3014fccf7c8b5c65049ae
5
5
  SHA512:
6
- metadata.gz: 7130274b2ae5f8b88411e2fad7d1137f716044f4059fa4f04b6b3acfb2c2362caf749e7c0d14235e7cce06a1ea3a5468406d52e6670a5cf428c0d8316e8c007c
7
- data.tar.gz: 671e011bec61bf99f27eb51caeab238c8f8b7f03046d8adbdf2c8d8ad8d1b7e1a465c9d2453f05c294947fe907f4ad12a529ec525791b1f11baa0f414a819840
6
+ metadata.gz: 402f81e5c8976cca51b685220219370a056875c9885a86f989e06d021d5848f5e18f09f1022df6bf64d4e9b72e8546fa206a5fff3be3501b5db7c401d72175a0
7
+ data.tar.gz: 19b44819f370cbdada8e747764c93d1366e2974cfe56436a96f087805ff898094bd3f63f082ca09f1410565a86c2b35129c2d1f64c29325f325995c654ca4cc4
@@ -19,7 +19,7 @@ def quota_request_open(quota_code) -> bool:
19
19
  QuotaCode=quota_code
20
20
  )
21
21
  # Status='PENDING'|'CASE_OPENED'|'APPROVED'|'DENIED'|'CASE_CLOSED'
22
- return any(req['status'] in IN_PROGRESS for req in response['RequestedQuotas'])
22
+ return any(req['Status'] in IN_PROGRESS for req in response['RequestedQuotas'])
23
23
 
24
24
  def increase_quota(increase_value, quota_code, endpoint) -> str:
25
25
  if quota_request_open(quota_code):
@@ -34,4 +34,4 @@ def increase_quota(increase_value, quota_code, endpoint) -> str:
34
34
  QuotaCode=quota_code,
35
35
  DesiredValue=desired_value
36
36
  )
37
- return response['CaseId']
37
+ return response['RequestedQuota']['CaseId']
@@ -163,7 +163,7 @@ module CfnVpn
163
163
  Targets([
164
164
  {
165
165
  Arn: FnGetAtt(:CfnVpnAutoRoutePopulator, :Arn),
166
- Id: "cfnvpnautoroutepopulator#{route[:dns].event_id_safe}",
166
+ Id: "auto-route-populator",
167
167
  Input: FnSub(input.to_json)
168
168
  }
169
169
  ])
@@ -297,6 +297,31 @@ module CfnVpn
297
297
  Resource: '*'
298
298
  }]
299
299
  }
300
+ },
301
+ {
302
+ PolicyName: 'vpn-quotas',
303
+ PolicyDocument: {
304
+ Version: '2012-10-17',
305
+ Statement: [
306
+ {
307
+ Effect: 'Allow',
308
+ Action: [
309
+ 'servicequotas:ListRequestedServiceQuotaChangeHistoryByQuota',
310
+ ],
311
+ Resource: '*'
312
+ },
313
+ {
314
+ Effect: 'Allow',
315
+ Action: [
316
+ 'servicequotas:RequestServiceQuotaIncrease'
317
+ ],
318
+ Resource: [
319
+ FnSub('arn:aws:servicequotas:${AWS::Region}:${AWS::AccountId}:ec2/L-401D78F7'),
320
+ FnSub('arn:aws:servicequotas:${AWS::Region}:${AWS::AccountId}:ec2/L-9A1BC94B')
321
+ ]
322
+ }
323
+ ]
324
+ }
300
325
  }
301
326
  ])
302
327
  Tags([
@@ -1,4 +1,4 @@
1
1
  module CfnVpn
2
- VERSION = "1.4.2".freeze
2
+ VERSION = "1.4.3".freeze
3
3
  CHANGE_SET_VERSION = VERSION.gsub('.', '-').freeze
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cfn-vpn
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.2
4
+ version: 1.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guslington
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-12-16 00:00:00.000000000 Z
11
+ date: 2021-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor