awspec 0.87.0 → 0.87.1
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/doc/resource_types.md +2 -2
- data/lib/awspec/stub/security_group.rb +7 -7
- data/lib/awspec/type/security_group.rb +7 -1
- data/lib/awspec/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ab2f1d81f78fc41c8220c707e6b4bb2e8723219e
|
|
4
|
+
data.tar.gz: 62fc35595857dd28a73b363c41e0e78ff673870e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c3562045e596c333942c6b5d4eee86dc850037acc2ea75b9c61c956e2d8a27f64aeccdfd51db4abe6da558d37ce056c6ddb93028d3812150f1ba4a5a588c809d
|
|
7
|
+
data.tar.gz: aa2675d96de408a20d906d8336e551add0ad2b195a2611382363c5020873c740aab1abf4639d0efe4d77528096273b23f35c4d912bab3f085b539f221e1877a1
|
data/doc/resource_types.md
CHANGED
|
@@ -1180,7 +1180,7 @@ end
|
|
|
1180
1180
|
```
|
|
1181
1181
|
|
|
1182
1182
|
|
|
1183
|
-
### its(:domain_id), its(:domain_name), its(:arn), its(:created), its(:deleted), its(:endpoint), its(:processing), its(:elasticsearch_version), its(:access_policies), its(:snapshot_options), its(:advanced_options)
|
|
1183
|
+
### its(:domain_id), its(:domain_name), its(:arn), its(:created), its(:deleted), its(:endpoint), its(:processing), its(:elasticsearch_version), its(:access_policies), its(:snapshot_options), its(:advanced_options), its(:log_publishing_options)
|
|
1184
1184
|
## <a name="elastictranscoder_pipeline">elastictranscoder_pipeline</a>
|
|
1185
1185
|
|
|
1186
1186
|
ElastictranscoderPipeline resource type.
|
|
@@ -2565,7 +2565,7 @@ end
|
|
|
2565
2565
|
```
|
|
2566
2566
|
|
|
2567
2567
|
|
|
2568
|
-
### its(:availability_zone), its(:state), its(:type), its(:vpc_attachments), its(:vpn_gateway_id), its(:tags)
|
|
2568
|
+
### its(:availability_zone), its(:state), its(:type), its(:vpc_attachments), its(:vpn_gateway_id), its(:amazon_side_asn), its(:tags)
|
|
2569
2569
|
## <a name="waf_web_acl">waf_web_acl</a>
|
|
2570
2570
|
|
|
2571
2571
|
WafWebAcl resource type.
|
|
@@ -20,10 +20,10 @@ Aws.config[:ec2] = {
|
|
|
20
20
|
ip_protocol: 'tcp',
|
|
21
21
|
ip_ranges: [
|
|
22
22
|
{
|
|
23
|
-
cidr_ip: '123.
|
|
23
|
+
cidr_ip: '123.45.67.0/24'
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
|
-
cidr_ip: '
|
|
26
|
+
cidr_ip: '123.45.68.89/32'
|
|
27
27
|
}
|
|
28
28
|
],
|
|
29
29
|
user_id_group_pairs: []
|
|
@@ -46,7 +46,7 @@ Aws.config[:ec2] = {
|
|
|
46
46
|
ip_protocol: 'tcp',
|
|
47
47
|
ip_ranges: [
|
|
48
48
|
{
|
|
49
|
-
cidr_ip: '100.
|
|
49
|
+
cidr_ip: '100.45.67.12/32'
|
|
50
50
|
}
|
|
51
51
|
],
|
|
52
52
|
user_id_group_pairs: []
|
|
@@ -57,7 +57,7 @@ Aws.config[:ec2] = {
|
|
|
57
57
|
ip_protocol: 'tcp',
|
|
58
58
|
ip_ranges: [
|
|
59
59
|
{
|
|
60
|
-
cidr_ip: '100.
|
|
60
|
+
cidr_ip: '100.45.67.89/32'
|
|
61
61
|
}
|
|
62
62
|
],
|
|
63
63
|
user_id_group_pairs: []
|
|
@@ -68,7 +68,7 @@ Aws.config[:ec2] = {
|
|
|
68
68
|
ip_protocol: 'tcp',
|
|
69
69
|
ip_ranges: [
|
|
70
70
|
{
|
|
71
|
-
cidr_ip: '
|
|
71
|
+
cidr_ip: '100.45.67.12/32'
|
|
72
72
|
}
|
|
73
73
|
],
|
|
74
74
|
user_id_group_pairs: []
|
|
@@ -79,7 +79,7 @@ Aws.config[:ec2] = {
|
|
|
79
79
|
ip_protocol: 'tcp',
|
|
80
80
|
ip_ranges: [
|
|
81
81
|
{
|
|
82
|
-
cidr_ip: '123.
|
|
82
|
+
cidr_ip: '123.45.67.89/32'
|
|
83
83
|
}
|
|
84
84
|
],
|
|
85
85
|
user_id_group_pairs: []
|
|
@@ -108,7 +108,7 @@ Aws.config[:ec2] = {
|
|
|
108
108
|
ip_protocol: 'tcp',
|
|
109
109
|
ip_ranges: [
|
|
110
110
|
{
|
|
111
|
-
cidr_ip: '100.
|
|
111
|
+
cidr_ip: '100.45.67.12/32'
|
|
112
112
|
}
|
|
113
113
|
]
|
|
114
114
|
},
|
|
@@ -92,7 +92,13 @@ module Awspec::Type
|
|
|
92
92
|
def cidr_opened?(permission, cidr)
|
|
93
93
|
return true unless cidr
|
|
94
94
|
ret = permission.ip_ranges.select do |ip_range|
|
|
95
|
-
|
|
95
|
+
# if the cidr is an IP address then do a true CIDR match
|
|
96
|
+
if cidr =~ /^\d+\.\d+\.\d+\.\d+/
|
|
97
|
+
net = IPAddr.new(ip_range.cidr_ip)
|
|
98
|
+
net.include?(cidr)
|
|
99
|
+
else
|
|
100
|
+
ip_range.cidr_ip == cidr
|
|
101
|
+
end
|
|
96
102
|
end
|
|
97
103
|
return true if ret.count > 0
|
|
98
104
|
ret = permission.user_id_group_pairs.select do |sg|
|
data/lib/awspec/version.rb
CHANGED
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.87.
|
|
4
|
+
version: 0.87.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- k1LoW
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-10-
|
|
11
|
+
date: 2017-10-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec
|