cfn-vpn 1.4.2 → 1.4.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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 54a7ba46c0bd16d5e70bf048aa90e4ea079e8dd5be0e6245afafb4730f804017
|
|
4
|
+
data.tar.gz: 0e9b6ed2c904b6debf40777232f780d15fc12904abc3014fccf7c8b5c65049ae
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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['
|
|
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']
|
data/lib/cfnvpn/templates/vpn.rb
CHANGED
|
@@ -163,7 +163,7 @@ module CfnVpn
|
|
|
163
163
|
Targets([
|
|
164
164
|
{
|
|
165
165
|
Arn: FnGetAtt(:CfnVpnAutoRoutePopulator, :Arn),
|
|
166
|
-
Id: "
|
|
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([
|
data/lib/cfnvpn/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2021-12-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: thor
|