awspec 0.82.2 → 0.82.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
  SHA1:
3
- metadata.gz: d2401b916fc27b0f0cef2c86130013680dd90c87
4
- data.tar.gz: 5f64f72143349aac7ff5d07e85e728b1462c630c
3
+ metadata.gz: 51d07fb005a53885d56ce715120e6dc1bd3dc11a
4
+ data.tar.gz: 5055bf986407ca826b518a51cf41ceb12d9f90bb
5
5
  SHA512:
6
- metadata.gz: e9cd315d2935b521bd8b30fa884bcdbf2f8a734e29acb974d2ad6c4df220ec94f02a184325d90ff968368fa881a05c07f6daef6c62e92d788b296e39ffb98977
7
- data.tar.gz: 27158fbebec7c13aebf72b6fc9cd8bda7774e036c5f08e2390ee7a4d663ffd482012fe483ec832293a01ea9b2b8a3eddae841b65ad95f2a35174370d704a42da
6
+ metadata.gz: e57f7a1c5009f3909034d332f845d46c6039e5dba5b8cc6c9fade7e5c761efa9185ddd3be61cc274692da053841b2aa561e622de935cc743ee5f94b759983c51
7
+ data.tar.gz: 8a5ff8aa85678320fffc58facb58ce569c70ce553bb53bf3078ea4eb3741a81f71ad7fc33e3b7fa1c4e193bf8fecad7c4364de7cfc62cde244de3ba307c82270
@@ -62,6 +62,16 @@ module Awspec::Helper
62
62
  }
63
63
  ]
64
64
  })
65
+ resource = res.vpn_connections.single_resource(vpn_connection_id)
66
+ return resource if resource
67
+ res = ec2_client.describe_vpn_connections({
68
+ filters: [
69
+ {
70
+ name: 'tag:Name',
71
+ values: [vpn_connection_id]
72
+ }
73
+ ]
74
+ })
65
75
  res.vpn_connections.single_resource(vpn_connection_id)
66
76
  end
67
77
 
@@ -8,7 +8,11 @@ Aws.config[:ec2] = {
8
8
  customer_gateway_id: 'cgw-cg5692g4',
9
9
  vpn_gateway_id: 'vgw-cg5692g4',
10
10
  state: 'available',
11
- type: "ipsec.1"
11
+ type: "ipsec.1",
12
+ tags: [
13
+ key: 'Name',
14
+ value: 'my-vpn'
15
+ ]
12
16
  }
13
17
  ]
14
18
  }
@@ -1,3 +1,3 @@
1
1
  module Awspec
2
- VERSION = '0.82.2'
2
+ VERSION = '0.82.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.82.2
4
+ version: 0.82.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - k1LoW
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-07-21 00:00:00.000000000 Z
11
+ date: 2017-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec