cfn-vpn 1.7.0 → 1.9.0
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/Dockerfile +1 -1
- data/docs/modifying.md +1 -1
- data/docs/yaml-config.md +1 -1
- data/lib/cfnvpn/actions/modify.rb +2 -1
- data/lib/cfnvpn/templates/vpn.rb +5 -0
- data/lib/cfnvpn/version.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: ee5ba16bbaada7aa00a5a370873c4c3b1e52e59442c990aa4daf351e04c97466
|
|
4
|
+
data.tar.gz: 2e7fbc5308f8c387721ff9268e127577e0060d4a3ff6555b2f967ab45b5da995
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2c0634cf11ae59796c359fc372a9e5665d97c8c8017f62b2136795eb53435993b9031fe933ea8ba9ba3e7c1d5bd5098dd0c91cd7233c7f26d3d99798b944959b
|
|
7
|
+
data.tar.gz: 49fce7b9f34f3dcd942588de916073271af6c41f3945b7cb68e999ac1181812ebb1311b360f788960bded3b88c2aef89e620ff94dd4c2b2e8d1d97135d6cf69e
|
data/Dockerfile
CHANGED
data/docs/modifying.md
CHANGED
|
@@ -34,7 +34,7 @@ cfn-vpn params [name] --diff-yaml cfnvpn.[name].yaml
|
|
|
34
34
|
cfn-vpn configuration can be managed through a YAML file using the `modify` command to apply the config changes to the vpn stack. See the [YAML docs](yaml-config.md) for config options.
|
|
35
35
|
|
|
36
36
|
```
|
|
37
|
-
cfn-vpn modify [name] --
|
|
37
|
+
cfn-vpn modify [name] --param-yaml cfnvpn.[name].yaml
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
a cloudformation changeset is created with the desired changes and approval is asked
|
data/docs/yaml-config.md
CHANGED
|
@@ -7,7 +7,7 @@ cfn-vpn configuration can be managed through a YAML file using the `modify` comm
|
|
|
7
7
|
run the `modify` command and supply the yaml file to apply the changes
|
|
8
8
|
|
|
9
9
|
```sh
|
|
10
|
-
cfn-vpn routes [name] --
|
|
10
|
+
cfn-vpn routes [name] --param-yaml cfnvpn.[name].yaml
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
## Dump Current Config to YAML File
|
|
@@ -73,7 +73,8 @@ module CfnVpn::Actions
|
|
|
73
73
|
|
|
74
74
|
if @options[:param_yaml]
|
|
75
75
|
CfnVpn::Log.logger.debug "Loading config from YAML file #{@options[:param_yaml]}"
|
|
76
|
-
|
|
76
|
+
yaml_config = CfnVpn::Config.get_config_from_yaml_file(@options[:param_yaml])
|
|
77
|
+
@config = @config.merge(yaml_config)
|
|
77
78
|
else
|
|
78
79
|
CfnVpn::Log.logger.debug "Loading config from options"
|
|
79
80
|
@options.each do |key, value|
|
data/lib/cfnvpn/templates/vpn.rb
CHANGED
|
@@ -203,7 +203,12 @@ module CfnVpn
|
|
|
203
203
|
|
|
204
204
|
elsif route.has_key?(:cidr)
|
|
205
205
|
target_subnets.each do |subnet|
|
|
206
|
+
# routes are tied to the subnet association: aws deletes them when the
|
|
207
|
+
# target network is disassociated, so they must be conditioned on the
|
|
208
|
+
# association to stay in sync with it.
|
|
206
209
|
EC2_ClientVpnRoute(:"#{route[:cidr].resource_safe}VpnRouteTo#{subnet.resource_safe}"[0..255]) {
|
|
210
|
+
Condition(:EnableSubnetAssociation)
|
|
211
|
+
DependsOn network_assoc_dependson if network_assoc_dependson.any?
|
|
207
212
|
Description "cfnvpn static route for #{route[:cidr]}. #{route[:desc]}".strip
|
|
208
213
|
ClientVpnEndpointId Ref(:ClientVpnEndpoint)
|
|
209
214
|
DestinationCidrBlock route[:cidr]
|
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
|
+
version: 1.9.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Guslington
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-08-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: thor
|