awspec 0.60.1 → 0.61.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/awspec.gemspec +2 -2
- data/doc/resource_types.md +7 -7
- data/lib/awspec/generator/spec/s3_bucket.rb +4 -0
- data/lib/awspec/stub/cloudfront_distribution.rb +4 -2
- data/lib/awspec/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7b0cbd90cac7187e2111894cadfb6414840a9cc2
|
|
4
|
+
data.tar.gz: 0e24cde4374dcf9341873a95b4391b201b0f2921
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 19233f8541ce8d531bee56ebf3db9d12b77c198f61049e9a420baef9d60702fd5c43fd71916826bc4aa0ce2bcffc141906df58a7f02de381c6373636d7b3d0a7
|
|
7
|
+
data.tar.gz: 740db68e6ff90d90a4c18b6f5140861e6526eaee1fd5e12b38d4b803542c7785b7be9b931a433808c7b30227cfa8005f23a34e4bf86eb668808796bd00183291
|
data/awspec.gemspec
CHANGED
|
@@ -22,8 +22,8 @@ Gem::Specification.new do |spec|
|
|
|
22
22
|
spec.required_ruby_version = '>= 2.1'
|
|
23
23
|
spec.add_runtime_dependency 'rspec', '~> 3.0'
|
|
24
24
|
spec.add_runtime_dependency 'rspec-its'
|
|
25
|
-
spec.add_runtime_dependency 'aws-sdk', '>= 2.2', '< 2.
|
|
26
|
-
spec.add_runtime_dependency 'awsecrets', '~> 1.
|
|
25
|
+
spec.add_runtime_dependency 'aws-sdk', '>= 2.2', '< 2.7'
|
|
26
|
+
spec.add_runtime_dependency 'awsecrets', '~> 1.5.0'
|
|
27
27
|
spec.add_runtime_dependency 'thor'
|
|
28
28
|
spec.add_runtime_dependency 'activesupport', '~> 4.0'
|
|
29
29
|
spec.add_runtime_dependency 'term-ansicolor'
|
data/doc/resource_types.md
CHANGED
|
@@ -159,7 +159,7 @@ end
|
|
|
159
159
|
```
|
|
160
160
|
|
|
161
161
|
|
|
162
|
-
### its(:name), its(:s3_bucket_name), its(:s3_key_prefix), its(:sns_topic_name), its(:sns_topic_arn), its(:include_global_service_events), its(:is_multi_region_trail), its(:home_region), its(:trail_arn), its(:log_file_validation_enabled), its(:cloud_watch_logs_log_group_arn), its(:cloud_watch_logs_role_arn), its(:kms_key_id)
|
|
162
|
+
### its(:name), its(:s3_bucket_name), its(:s3_key_prefix), its(:sns_topic_name), its(:sns_topic_arn), its(:include_global_service_events), its(:is_multi_region_trail), its(:home_region), its(:trail_arn), its(:log_file_validation_enabled), its(:cloud_watch_logs_log_group_arn), its(:cloud_watch_logs_role_arn), its(:kms_key_id), its(:has_custom_event_selectors)
|
|
163
163
|
## <a name="cloudwatch_alarm">cloudwatch_alarm</a>
|
|
164
164
|
|
|
165
165
|
CloudwatchAlarm resource type.
|
|
@@ -208,7 +208,7 @@ describe cloudwatch_alarm('my-cloudwatch-alarm') do
|
|
|
208
208
|
end
|
|
209
209
|
```
|
|
210
210
|
|
|
211
|
-
### its(:alarm_name), its(:alarm_arn), its(:alarm_description), its(:alarm_configuration_updated_timestamp), its(:actions_enabled), its(:state_value), its(:state_reason), its(:state_reason_data), its(:state_updated_timestamp), its(:metric_name), its(:namespace), its(:statistic), its(:period), its(:unit), its(:evaluation_periods), its(:threshold), its(:comparison_operator)
|
|
211
|
+
### its(:alarm_name), its(:alarm_arn), its(:alarm_description), its(:alarm_configuration_updated_timestamp), its(:actions_enabled), its(:state_value), its(:state_reason), its(:state_reason_data), its(:state_updated_timestamp), its(:metric_name), its(:namespace), its(:statistic), its(:extended_statistic), its(:period), its(:unit), its(:evaluation_periods), its(:threshold), its(:comparison_operator)
|
|
212
212
|
## <a name="cloudwatch_event">cloudwatch_event</a>
|
|
213
213
|
|
|
214
214
|
CloudwatchEvent resource type.
|
|
@@ -255,7 +255,7 @@ describe directconnect_virtual_interface('my-directconnect-virtual-interface') d
|
|
|
255
255
|
end
|
|
256
256
|
```
|
|
257
257
|
|
|
258
|
-
### its(:owner_account), its(:virtual_interface_id), its(:location), its(:connection_id), its(:virtual_interface_type), its(:virtual_interface_name), its(:vlan), its(:asn), its(:auth_key), its(:amazon_address), its(:customer_address), its(:virtual_interface_state), its(:customer_router_config), its(:virtual_gateway_id)
|
|
258
|
+
### its(:owner_account), its(:virtual_interface_id), its(:location), its(:connection_id), its(:virtual_interface_type), its(:virtual_interface_name), its(:vlan), its(:asn), its(:auth_key), its(:amazon_address), its(:customer_address), its(:address_family), its(:virtual_interface_state), its(:customer_router_config), its(:virtual_gateway_id), its(:bgp_peers)
|
|
259
259
|
## <a name="ebs">ebs</a>
|
|
260
260
|
|
|
261
261
|
EBS resource type.
|
|
@@ -1085,7 +1085,7 @@ end
|
|
|
1085
1085
|
|
|
1086
1086
|
This matcher does not support Amazon S3 event sources. ( [See SDK doc](http://docs.aws.amazon.com/sdkforruby/api/Aws/Lambda/Client.html#list_event_source_mappings-instance_method) )
|
|
1087
1087
|
|
|
1088
|
-
### its(:function_name), its(:function_arn), its(:runtime), its(:role), its(:handler), its(:code_size), its(:description), its(:timeout), its(:memory_size), its(:last_modified), its(:code_sha_256), its(:version), its(:vpc_config)
|
|
1088
|
+
### its(:function_name), its(:function_arn), its(:runtime), its(:role), its(:handler), its(:code_size), its(:description), its(:timeout), its(:memory_size), its(:last_modified), its(:code_sha_256), its(:version), its(:vpc_config), its(:dead_letter_config), its(:environment), its(:kms_key_arn)
|
|
1089
1089
|
## <a name="launch_configuration">launch_configuration</a>
|
|
1090
1090
|
|
|
1091
1091
|
LaunchConfiguration resource type.
|
|
@@ -1378,7 +1378,7 @@ end
|
|
|
1378
1378
|
```
|
|
1379
1379
|
|
|
1380
1380
|
|
|
1381
|
-
### its(:vpc_id), its(:db_instance_identifier), its(:db_instance_class), its(:engine), its(:db_instance_status), its(:master_username), its(:db_name), its(:endpoint), its(:allocated_storage), its(:instance_create_time), its(:preferred_backup_window), its(:backup_retention_period), its(:availability_zone), its(:preferred_maintenance_window), its(:pending_modified_values), its(:latest_restorable_time), its(:multi_az), its(:engine_version), its(:auto_minor_version_upgrade), its(:read_replica_source_db_instance_identifier), its(:license_model), its(:iops), its(:character_set_name), its(:secondary_availability_zone), its(:publicly_accessible), its(:storage_type), its(:tde_credential_arn), its(:db_instance_port), its(:db_cluster_identifier), its(:storage_encrypted), its(:kms_key_id), its(:dbi_resource_id), its(:ca_certificate_identifier), its(:copy_tags_to_snapshot), its(:monitoring_interval), its(:enhanced_monitoring_resource_arn), its(:monitoring_role_arn), its(:promotion_tier), its(:db_instance_arn)
|
|
1381
|
+
### its(:vpc_id), its(:db_instance_identifier), its(:db_instance_class), its(:engine), its(:db_instance_status), its(:master_username), its(:db_name), its(:endpoint), its(:allocated_storage), its(:instance_create_time), its(:preferred_backup_window), its(:backup_retention_period), its(:availability_zone), its(:preferred_maintenance_window), its(:pending_modified_values), its(:latest_restorable_time), its(:multi_az), its(:engine_version), its(:auto_minor_version_upgrade), its(:read_replica_source_db_instance_identifier), its(:license_model), its(:iops), its(:character_set_name), its(:secondary_availability_zone), its(:publicly_accessible), its(:storage_type), its(:tde_credential_arn), its(:db_instance_port), its(:db_cluster_identifier), its(:storage_encrypted), its(:kms_key_id), its(:dbi_resource_id), its(:ca_certificate_identifier), its(:copy_tags_to_snapshot), its(:monitoring_interval), its(:enhanced_monitoring_resource_arn), its(:monitoring_role_arn), its(:promotion_tier), its(:db_instance_arn), its(:timezone)
|
|
1382
1382
|
### :unlock: Advanced use
|
|
1383
1383
|
|
|
1384
1384
|
`rds` can use `Aws::RDS::DBInstance` resource (see http://docs.aws.amazon.com/sdkforruby/api/Aws/RDS/DBInstance.html).
|
|
@@ -1776,7 +1776,7 @@ end
|
|
|
1776
1776
|
```
|
|
1777
1777
|
|
|
1778
1778
|
|
|
1779
|
-
### its(:subnet_id), its(:state), its(:vpc_id), its(:cidr_block), its(:available_ip_address_count), its(:availability_zone), its(:default_for_az), its(:map_public_ip_on_launch)
|
|
1779
|
+
### its(:subnet_id), its(:state), its(:vpc_id), its(:cidr_block), its(:assign_ipv_6_address_on_creation), its(:available_ip_address_count), its(:availability_zone), its(:default_for_az), its(:map_public_ip_on_launch)
|
|
1780
1780
|
### :unlock: Advanced use
|
|
1781
1781
|
|
|
1782
1782
|
`subnet` can use `Aws::EC2::Subnet` resource (see http://docs.aws.amazon.com/sdkforruby/api/Aws/EC2/Subnet.html).
|
|
@@ -1918,7 +1918,7 @@ describe cloudfront_distribution('123456789zyxw.cloudfront.net') do
|
|
|
1918
1918
|
end
|
|
1919
1919
|
```
|
|
1920
1920
|
|
|
1921
|
-
### its(:id), its(:arn), its(:status), its(:last_modified_time), its(:domain_name), its(:comment), its(:price_class), its(:enabled), its(:web_acl_id), its(:http_version)
|
|
1921
|
+
### its(:id), its(:arn), its(:status), its(:last_modified_time), its(:domain_name), its(:comment), its(:price_class), its(:enabled), its(:web_acl_id), its(:http_version), its(:is_ipv6_enabled)
|
|
1922
1922
|
## <a name="elastictranscoder_pipeline">elastictranscoder_pipeline</a>
|
|
1923
1923
|
|
|
1924
1924
|
ElastictranscoderPipeline resource type.
|
|
@@ -41,6 +41,9 @@ describe s3_bucket('<%= bucket.name %>') do
|
|
|
41
41
|
<% grant_specs.each do |line| %>
|
|
42
42
|
<%= line %>
|
|
43
43
|
<% end %>
|
|
44
|
+
<%- if bucket_policy -%>
|
|
45
|
+
it { should have_policy('<%= bucket_policy %>') }
|
|
46
|
+
<%- end -%>
|
|
44
47
|
end
|
|
45
48
|
EOF
|
|
46
49
|
template
|
|
@@ -51,6 +54,7 @@ EOF
|
|
|
51
54
|
def content(bucket)
|
|
52
55
|
acl = find_bucket_acl(bucket.name)
|
|
53
56
|
grant_specs = generate_grant_specs(acl)
|
|
57
|
+
bucket_policy = find_bucket_policy(bucket.name).policy.read
|
|
54
58
|
ERB.new(bucket_spec_template, nil, '-').result(binding).gsub(/^\n/, '')
|
|
55
59
|
end
|
|
56
60
|
end
|
|
@@ -104,7 +104,8 @@ Aws.config[:cloudfront] = {
|
|
|
104
104
|
}
|
|
105
105
|
},
|
|
106
106
|
web_acl_id: '',
|
|
107
|
-
http_version: 'http2'
|
|
107
|
+
http_version: 'http2',
|
|
108
|
+
is_ipv6_enabled: true
|
|
108
109
|
},
|
|
109
110
|
{
|
|
110
111
|
id: 'E2CLOUDFRONTXX',
|
|
@@ -199,7 +200,8 @@ Aws.config[:cloudfront] = {
|
|
|
199
200
|
}
|
|
200
201
|
},
|
|
201
202
|
web_acl_id: '',
|
|
202
|
-
http_version: 'http1.1'
|
|
203
|
+
http_version: 'http1.1',
|
|
204
|
+
is_ipv6_enabled: true
|
|
203
205
|
}
|
|
204
206
|
]
|
|
205
207
|
}
|
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.
|
|
4
|
+
version: 0.61.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- k1LoW
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-12-
|
|
11
|
+
date: 2016-12-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec
|
|
@@ -47,7 +47,7 @@ dependencies:
|
|
|
47
47
|
version: '2.2'
|
|
48
48
|
- - "<"
|
|
49
49
|
- !ruby/object:Gem::Version
|
|
50
|
-
version: '2.
|
|
50
|
+
version: '2.7'
|
|
51
51
|
type: :runtime
|
|
52
52
|
prerelease: false
|
|
53
53
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -57,21 +57,21 @@ dependencies:
|
|
|
57
57
|
version: '2.2'
|
|
58
58
|
- - "<"
|
|
59
59
|
- !ruby/object:Gem::Version
|
|
60
|
-
version: '2.
|
|
60
|
+
version: '2.7'
|
|
61
61
|
- !ruby/object:Gem::Dependency
|
|
62
62
|
name: awsecrets
|
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
|
64
64
|
requirements:
|
|
65
65
|
- - "~>"
|
|
66
66
|
- !ruby/object:Gem::Version
|
|
67
|
-
version: 1.
|
|
67
|
+
version: 1.5.0
|
|
68
68
|
type: :runtime
|
|
69
69
|
prerelease: false
|
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
|
71
71
|
requirements:
|
|
72
72
|
- - "~>"
|
|
73
73
|
- !ruby/object:Gem::Version
|
|
74
|
-
version: 1.
|
|
74
|
+
version: 1.5.0
|
|
75
75
|
- !ruby/object:Gem::Dependency
|
|
76
76
|
name: thor
|
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|