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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ef9cd59cf1876c3b909d920e68d331e6a6c7985eb6e4a9ad069cc065d7e5e79b
4
- data.tar.gz: 3beaf85c7b146bb7df165661b9a0a66268a6372e34865c62b7b9ddc238982a75
3
+ metadata.gz: ee5ba16bbaada7aa00a5a370873c4c3b1e52e59442c990aa4daf351e04c97466
4
+ data.tar.gz: 2e7fbc5308f8c387721ff9268e127577e0060d4a3ff6555b2f967ab45b5da995
5
5
  SHA512:
6
- metadata.gz: f4221735ef37e25221dd6802baace032d1330d980fd0827aa9c2907042b0b6ceb18888d7f431553e4cbc027af96382166a3662d63bd936db250443d3baa6cd4c
7
- data.tar.gz: 8ab592bdc27770b1eb61fd4532e6b572c895d94d7e5225d7a5518fc22242975be58a71e31d8465d770b88c95f6992ff8074ff0ce02356b1feb2bb35233b18282
6
+ metadata.gz: 2c0634cf11ae59796c359fc372a9e5665d97c8c8017f62b2136795eb53435993b9031fe933ea8ba9ba3e7c1d5bd5098dd0c91cd7233c7f26d3d99798b944959b
7
+ data.tar.gz: 49fce7b9f34f3dcd942588de916073271af6c41f3945b7cb68e999ac1181812ebb1311b360f788960bded3b88c2aef89e620ff94dd4c2b2e8d1d97135d6cf69e
data/Dockerfile CHANGED
@@ -9,7 +9,7 @@ RUN apt-get update -qq \
9
9
  ENV EASYRSA=/usr/share/easy-rsa
10
10
  ENV EASYRSA_BATCH=yes
11
11
 
12
- ARG CFNVPN_VERSION="1.7.0"
12
+ ARG CFNVPN_VERSION="1.9.0"
13
13
 
14
14
  COPY . /src
15
15
 
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] --params-yaml cfnvpn.[name].yaml
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] --params-yaml cfnvpn.[name].yaml
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
- @config = CfnVpn::Config.get_config_from_yaml_file(@options[:param_yaml])
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|
@@ -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]
@@ -1,4 +1,4 @@
1
1
  module CfnVpn
2
- VERSION = "1.7.0".freeze
2
+ VERSION = "1.9.0".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.7.0
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: 2025-11-10 00:00:00.000000000 Z
11
+ date: 2026-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor