awspec 1.19.2 → 1.22.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/cognito_identity_pool.md +7 -0
- data/doc/_resource_types/cognito_user_pool.md +7 -0
- data/doc/_resource_types/msk.md +15 -0
- data/doc/_resource_types/transit_gateway.md +24 -0
- data/doc/_resource_types/vpc_endpoints.md +70 -0
- data/doc/resource_types.md +186 -19
- data/lib/awspec/generator/doc/type/cognito_identity_pool.rb +17 -0
- data/lib/awspec/generator/doc/type/cognito_user_pool.rb +17 -0
- data/lib/awspec/generator/doc/type/msk.rb +17 -0
- data/lib/awspec/generator/doc/type/transit_gateway.rb +17 -0
- data/lib/awspec/generator/doc/type/vpc_endpoints.rb +17 -0
- data/lib/awspec/helper/finder.rb +14 -2
- data/lib/awspec/helper/finder/cognito_identity_pool.rb +15 -0
- data/lib/awspec/helper/finder/cognito_user_pool.rb +15 -0
- data/lib/awspec/helper/finder/ec2.rb +10 -1
- data/lib/awspec/helper/finder/ecr.rb +4 -0
- data/lib/awspec/helper/finder/msk.rb +15 -0
- data/lib/awspec/helper/finder/vpc_endpoints.rb +15 -0
- data/lib/awspec/helper/type.rb +1 -1
- data/lib/awspec/stub/cognito_identity_pool.rb +16 -0
- data/lib/awspec/stub/cognito_user_pool.rb +47 -0
- data/lib/awspec/stub/msk.rb +84 -0
- data/lib/awspec/stub/transit_gateway.rb +52 -0
- data/lib/awspec/stub/vpc_endpoints.rb +64 -0
- data/lib/awspec/type/cognito_identity_pool.rb +11 -0
- data/lib/awspec/type/cognito_user_pool.rb +11 -0
- data/lib/awspec/type/ecr_repository.rb +4 -0
- data/lib/awspec/type/msk.rb +27 -0
- data/lib/awspec/type/transit_gateway.rb +24 -0
- data/lib/awspec/type/vpc_endpoints.rb +43 -0
- data/lib/awspec/version.rb +1 -1
- metadata +26 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 710c1219289b969a66f081eadd1328d5d139ebb9a17db4dbf1afd3914ac56aee
|
4
|
+
data.tar.gz: ce6ad8d080a22d888dfdec4956e5fbbc64c3675713d8458d1d648fd7f31b6532
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d64abec533937d923515a91d2e834e75290b9a527e0f2ba0474a658b308dec1f626d01f0079df987dca9e9fdc51e7b5f9ef1382a302ce55157624d803862cdd
|
7
|
+
data.tar.gz: 4934f4fd7536f348ddd159f1e38a4ae5c66958078ee76d712aa112aeecffcfdf7b1efb81cf501fcd07536ed28f72fdd5e005cb0ee6dee6ecb14a9731203e369b
|
@@ -0,0 +1,24 @@
|
|
1
|
+
### exist
|
2
|
+
|
3
|
+
```ruby
|
4
|
+
describe transit_gateway('tgw-1234567890abcdefg') do
|
5
|
+
it { should exist }
|
6
|
+
it { should have_tag('Name').value('my-tgw') }
|
7
|
+
it { should have_attachment('tgw-attach-1234567890abcdefg') }
|
8
|
+
its('options.amazon_side_asn') { should eq 64_516 }
|
9
|
+
its('options.auto_accept_shared_attachments') { should eq 'enable' }
|
10
|
+
its('options.default_route_table_association') { should eq 'enable' }
|
11
|
+
its('options.default_route_table_propagation') { should eq 'enable' }
|
12
|
+
its('options.dns_support') { should eq 'enable' }
|
13
|
+
its('options.vpn_ecmp_support') { should eq 'enable' }
|
14
|
+
its('options.association_default_route_table_id') { should eq 'tgw-rtb-0123456789abcdefg' }
|
15
|
+
its('options.propagation_default_route_table_id') { should eq 'tgw-rtb-0123456789abcdefg' }
|
16
|
+
end
|
17
|
+
```
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
describe transit_gateway('my-tgw') do
|
21
|
+
it { should exist }
|
22
|
+
its(:transit_gateway_id) { should eq 'tgw-1234567890abcdefg' }
|
23
|
+
end
|
24
|
+
```
|
@@ -0,0 +1,70 @@
|
|
1
|
+
### exist
|
2
|
+
|
3
|
+
```ruby
|
4
|
+
describe vpc_endpoints('my-vpc-endpoint') do
|
5
|
+
it { should exist }
|
6
|
+
end
|
7
|
+
```
|
8
|
+
|
9
|
+
describe vpc_endpoints('vpce-05907f23265b25f20'), region: $tfvars["region"]["value"] do
|
10
|
+
it { should exist }
|
11
|
+
it { should be_available }
|
12
|
+
it { should have_subnet('subnet-040e19eabf3226f99') }
|
13
|
+
it { should belong_to_vpc('vpc-00af9dcc0134b48e0') }
|
14
|
+
its(:private_dns_enabled) { should eq true }
|
15
|
+
its(:vpc_endpoint_type) { should eq 'Interface' }
|
16
|
+
its(:service_name) { should eq 'com.amazonaws.eu-west-1.codebuild' }
|
17
|
+
end
|
18
|
+
|
19
|
+
### be_pendingacceptance, be_pending, be_available, be_deleting, be_deleted, be_rejected, be_failed, be_expired
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
describe ami('my-ami') do
|
23
|
+
it { should be_available }
|
24
|
+
end
|
25
|
+
```
|
26
|
+
|
27
|
+
### belong_to_vpc
|
28
|
+
|
29
|
+
```ruby
|
30
|
+
describe vpc_endpoints('my-vpc-endpoint') do
|
31
|
+
it { should belong_to_vpc('my-vpc') }
|
32
|
+
end
|
33
|
+
```
|
34
|
+
|
35
|
+
### have_route_table
|
36
|
+
|
37
|
+
```ruby
|
38
|
+
describe vpc_endpoints('my-vpc-endpoint') do
|
39
|
+
it { should have_route_table('rtb-abc123') }
|
40
|
+
end
|
41
|
+
```
|
42
|
+
|
43
|
+
### have_subnet
|
44
|
+
|
45
|
+
```ruby
|
46
|
+
describe vpc_endpoints('my-vpc-endpoint') do
|
47
|
+
it { should have_subnet('subnet-abc123') }
|
48
|
+
end
|
49
|
+
```
|
50
|
+
|
51
|
+
### have_tag
|
52
|
+
|
53
|
+
```ruby
|
54
|
+
describe vpc_endpoints('my-vpc-endpoint') do
|
55
|
+
it { should have_tag('env').value('dev') }
|
56
|
+
end
|
57
|
+
```
|
58
|
+
|
59
|
+
### advanced
|
60
|
+
|
61
|
+
`vpc_endpoints` can use `Aws::EC2::Types::VpcEndpoint` resource (see https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Types/VpcEndpoint.html).
|
62
|
+
|
63
|
+
```ruby
|
64
|
+
describe vpc_endpoints('my-vpc-endpoint') do
|
65
|
+
its(:private_dns_enabled) { should eq true }
|
66
|
+
its(:vpc_endpoint_type) { should eq 'Interface' }
|
67
|
+
its(:service_name) { should eq 'com.amazonaws.eu-west-1.codebuild' }
|
68
|
+
end
|
69
|
+
```
|
70
|
+
|
data/doc/resource_types.md
CHANGED
@@ -19,6 +19,8 @@
|
|
19
19
|
| [codebuild](#codebuild)
|
20
20
|
| [codedeploy](#codedeploy)
|
21
21
|
| [codedeploy_deployment_group](#codedeploy_deployment_group)
|
22
|
+
| [cognito_identity_pool](#cognito_identity_pool)
|
23
|
+
| [cognito_user_pool](#cognito_user_pool)
|
22
24
|
| [customer_gateway](#customer_gateway)
|
23
25
|
| [directconnect_virtual_interface](#directconnect_virtual_interface)
|
24
26
|
| [dynamodb_table](#dynamodb_table)
|
@@ -50,6 +52,7 @@
|
|
50
52
|
| [launch_configuration](#launch_configuration)
|
51
53
|
| [launch_template](#launch_template)
|
52
54
|
| [mq](#mq)
|
55
|
+
| [msk](#msk)
|
53
56
|
| [nat_gateway](#nat_gateway)
|
54
57
|
| [network_acl](#network_acl)
|
55
58
|
| [network_interface](#network_interface)
|
@@ -71,7 +74,9 @@
|
|
71
74
|
| [sqs](#sqs)
|
72
75
|
| [ssm_parameter](#ssm_parameter)
|
73
76
|
| [subnet](#subnet)
|
77
|
+
| [transit_gateway](#transit_gateway)
|
74
78
|
| [vpc](#vpc)
|
79
|
+
| [vpc_endpoints](#vpc_endpoints)
|
75
80
|
| [vpn_connection](#vpn_connection)
|
76
81
|
| [vpn_gateway](#vpn_gateway)
|
77
82
|
| [waf_web_acl](#waf_web_acl)
|
@@ -162,7 +167,7 @@ describe alb('my-alb') do
|
|
162
167
|
end
|
163
168
|
```
|
164
169
|
|
165
|
-
### its(:load_balancer_arn), its(:dns_name), its(:canonical_hosted_zone_id), its(:created_time), its(:load_balancer_name), its(:scheme), its(:vpc_id), its(:type), its(:security_groups), its(:ip_address_type)
|
170
|
+
### its(:load_balancer_arn), its(:dns_name), its(:canonical_hosted_zone_id), its(:created_time), its(:load_balancer_name), its(:scheme), its(:vpc_id), its(:type), its(:security_groups), its(:ip_address_type), its(:customer_owned_ipv_4_pool)
|
166
171
|
## <a name="alb_listener">alb_listener</a>
|
167
172
|
|
168
173
|
AlbListener resource type.
|
@@ -242,7 +247,7 @@ end
|
|
242
247
|
```
|
243
248
|
|
244
249
|
|
245
|
-
### its(:target_group_arn), its(:target_group_name), its(:protocol), its(:port), its(:vpc_id), its(:health_check_protocol), its(:health_check_port), its(:health_check_enabled), its(:health_check_interval_seconds), its(:health_check_timeout_seconds), its(:healthy_threshold_count), its(:unhealthy_threshold_count), its(:health_check_path), its(:load_balancer_arns), its(:target_type)
|
250
|
+
### its(:target_group_arn), its(:target_group_name), its(:protocol), its(:port), its(:vpc_id), its(:health_check_protocol), its(:health_check_port), its(:health_check_enabled), its(:health_check_interval_seconds), its(:health_check_timeout_seconds), its(:healthy_threshold_count), its(:unhealthy_threshold_count), its(:health_check_path), its(:load_balancer_arns), its(:target_type), its(:protocol_version)
|
246
251
|
## <a name="ami">ami</a>
|
247
252
|
|
248
253
|
AMI resource type.
|
@@ -292,7 +297,7 @@ end
|
|
292
297
|
|
293
298
|
### have_path
|
294
299
|
|
295
|
-
### its(:id), its(:name), its(:description), its(:created_date), its(:version), its(:warnings), its(:binary_media_types), its(:minimum_compression_size), its(:api_key_source), its(:policy), its(:tags)
|
300
|
+
### its(:id), its(:name), its(:description), its(:created_date), its(:version), its(:warnings), its(:binary_media_types), its(:minimum_compression_size), its(:api_key_source), its(:policy), its(:tags), its(:disable_execute_api_endpoint)
|
296
301
|
## <a name="autoscaling_group">autoscaling_group</a>
|
297
302
|
|
298
303
|
AutoscalingGroup resource type.
|
@@ -354,7 +359,7 @@ describe autoscaling_group('my-auto-scaling-group') do
|
|
354
359
|
end
|
355
360
|
```
|
356
361
|
|
357
|
-
### its(:auto_scaling_group_name), its(:auto_scaling_group_arn), its(:launch_configuration_name), its(:launch_template), its(:mixed_instances_policy), its(:min_size), its(:max_size), its(:desired_capacity), its(:default_cooldown), its(:availability_zones), its(:load_balancer_names), its(:target_group_arns), its(:health_check_type), its(:health_check_grace_period), its(:created_time), its(:placement_group), its(:vpc_zone_identifier), its(:enabled_metrics), its(:status), its(:termination_policies), its(:new_instances_protected_from_scale_in), its(:service_linked_role_arn), its(:max_instance_lifetime)
|
362
|
+
### its(:auto_scaling_group_name), its(:auto_scaling_group_arn), its(:launch_configuration_name), its(:launch_template), its(:mixed_instances_policy), its(:min_size), its(:max_size), its(:desired_capacity), its(:default_cooldown), its(:availability_zones), its(:load_balancer_names), its(:target_group_arns), its(:health_check_type), its(:health_check_grace_period), its(:created_time), its(:placement_group), its(:vpc_zone_identifier), its(:enabled_metrics), its(:status), its(:termination_policies), its(:new_instances_protected_from_scale_in), its(:service_linked_role_arn), its(:max_instance_lifetime), its(:capacity_rebalance)
|
358
363
|
## <a name="batch_compute_environment">batch_compute_environment</a>
|
359
364
|
|
360
365
|
BatchComputeEnvironment resource type.
|
@@ -393,7 +398,7 @@ end
|
|
393
398
|
|
394
399
|
### be_unmanaged
|
395
400
|
|
396
|
-
### its(:compute_environment_name), its(:compute_environment_arn), its(:ecs_cluster_arn), its(:type), its(:state), its(:status), its(:status_reason), its(:service_role)
|
401
|
+
### its(:compute_environment_name), its(:compute_environment_arn), its(:ecs_cluster_arn), its(:tags), its(:type), its(:state), its(:status), its(:status_reason), its(:service_role)
|
397
402
|
## <a name="batch_job_definition">batch_job_definition</a>
|
398
403
|
|
399
404
|
BatchJobDefinition resource type.
|
@@ -406,7 +411,7 @@ describe batch_job_definition('my-batch-job-definition') do
|
|
406
411
|
end
|
407
412
|
```
|
408
413
|
|
409
|
-
### its(:job_definition_name), its(:job_definition_arn), its(:revision), its(:status), its(:type), its(:parameters), its(:retry_strategy), its(:timeout), its(:node_properties)
|
414
|
+
### its(:job_definition_name), its(:job_definition_arn), its(:revision), its(:status), its(:type), its(:parameters), its(:retry_strategy), its(:timeout), its(:node_properties), its(:tags)
|
410
415
|
## <a name="batch_job_queue">batch_job_queue</a>
|
411
416
|
|
412
417
|
BatchJobQueue resource type.
|
@@ -432,7 +437,7 @@ describe batch_job_queue('my-batch-job-queue') do
|
|
432
437
|
end
|
433
438
|
```
|
434
439
|
|
435
|
-
### its(:job_queue_name), its(:job_queue_arn), its(:state), its(:status), its(:status_reason), its(:priority)
|
440
|
+
### its(:job_queue_name), its(:job_queue_arn), its(:state), its(:status), its(:status_reason), its(:priority), its(:tags)
|
436
441
|
## <a name="cloudformation_stack">cloudformation_stack</a>
|
437
442
|
|
438
443
|
CloudformationStack resource type.
|
@@ -739,6 +744,30 @@ end
|
|
739
744
|
```
|
740
745
|
|
741
746
|
### its(:application_name), its(:deployment_group_id), its(:deployment_group_name), its(:deployment_config_name), its(:on_premises_instance_tag_filters), its(:service_role_arn), its(:target_revision), its(:trigger_configurations), its(:alarm_configuration), its(:deployment_style), its(:load_balancer_info), its(:last_successful_deployment), its(:last_attempted_deployment), its(:ec2_tag_set), its(:on_premises_tag_set), its(:compute_platform), its(:ecs_services)
|
747
|
+
## <a name="cognito_identity_pool">cognito_identity_pool</a>
|
748
|
+
|
749
|
+
CognitoIdentityPool resource type.
|
750
|
+
|
751
|
+
### exist
|
752
|
+
|
753
|
+
```ruby
|
754
|
+
describe cognito_identity_pool('my-cognito-identity-pool') do
|
755
|
+
it { should exist }
|
756
|
+
end
|
757
|
+
```
|
758
|
+
### its(:identity_pool_id), its(:identity_pool_name)
|
759
|
+
## <a name="cognito_user_pool">cognito_user_pool</a>
|
760
|
+
|
761
|
+
CognitoUserPool resource type.
|
762
|
+
|
763
|
+
### exist
|
764
|
+
|
765
|
+
```ruby
|
766
|
+
describe cognito_user_pool('my-cognito-user-pool') do
|
767
|
+
it { should exist }
|
768
|
+
end
|
769
|
+
```
|
770
|
+
### its(:id), its(:name), its(:status), its(:last_modified_date), its(:creation_date)
|
742
771
|
## <a name="customer_gateway">customer_gateway</a>
|
743
772
|
|
744
773
|
CustomerGateway resource type.
|
@@ -1088,7 +1117,7 @@ end
|
|
1088
1117
|
```
|
1089
1118
|
|
1090
1119
|
|
1091
|
-
### its(:ami_launch_index), its(:image_id), its(:instance_id), its(:instance_type), its(:kernel_id), its(:key_name), its(:launch_time), its(:monitoring), its(:placement), its(:platform), its(:private_dns_name), its(:private_ip_address), its(:product_codes), its(:public_dns_name), its(:public_ip_address), its(:ramdisk_id), its(:state_transition_reason), its(:subnet_id), its(:vpc_id), its(:architecture), its(:client_token), its(:ebs_optimized), its(:ena_support), its(:hypervisor), its(:instance_lifecycle), its(:elastic_gpu_associations), its(:elastic_inference_accelerator_associations), its(:outpost_arn), its(:root_device_name), its(:root_device_type), its(:source_dest_check), its(:spot_instance_request_id), its(:sriov_net_support), its(:state_reason), its(:virtualization_type), its(:cpu_options), its(:capacity_reservation_id), its(:capacity_reservation_specification), its(:hibernation_options), its(:licenses), its(:metadata_options)
|
1120
|
+
### its(:ami_launch_index), its(:image_id), its(:instance_id), its(:instance_type), its(:kernel_id), its(:key_name), its(:launch_time), its(:monitoring), its(:placement), its(:platform), its(:private_dns_name), its(:private_ip_address), its(:product_codes), its(:public_dns_name), its(:public_ip_address), its(:ramdisk_id), its(:state_transition_reason), its(:subnet_id), its(:vpc_id), its(:architecture), its(:client_token), its(:ebs_optimized), its(:ena_support), its(:hypervisor), its(:instance_lifecycle), its(:elastic_gpu_associations), its(:elastic_inference_accelerator_associations), its(:outpost_arn), its(:root_device_name), its(:root_device_type), its(:source_dest_check), its(:spot_instance_request_id), its(:sriov_net_support), its(:state_reason), its(:virtualization_type), its(:cpu_options), its(:capacity_reservation_id), its(:capacity_reservation_specification), its(:hibernation_options), its(:licenses), its(:metadata_options), its(:enclave_options)
|
1092
1121
|
### :unlock: Advanced use
|
1093
1122
|
|
1094
1123
|
`ec2` can use `Aws::EC2::Instance` resource (see http://docs.aws.amazon.com/sdkforruby/api/Aws/EC2/Instance.html).
|
@@ -1275,7 +1304,7 @@ describe efs('my-efs') do
|
|
1275
1304
|
end
|
1276
1305
|
```
|
1277
1306
|
|
1278
|
-
### its(:owner_id), its(:creation_token), its(:file_system_id), its(:creation_time), its(:life_cycle_state), its(:name), its(:number_of_mount_targets), its(:performance_mode), its(:encrypted), its(:kms_key_id), its(:throughput_mode), its(:provisioned_throughput_in_mibps)
|
1307
|
+
### its(:owner_id), its(:creation_token), its(:file_system_id), its(:file_system_arn), its(:creation_time), its(:life_cycle_state), its(:name), its(:number_of_mount_targets), its(:performance_mode), its(:encrypted), its(:kms_key_id), its(:throughput_mode), its(:provisioned_throughput_in_mibps)
|
1279
1308
|
## <a name="elastic_ip">elastic_ip</a>
|
1280
1309
|
|
1281
1310
|
Elastic IP resource type.
|
@@ -1327,7 +1356,7 @@ describe eks('my-eks') do
|
|
1327
1356
|
end
|
1328
1357
|
```
|
1329
1358
|
|
1330
|
-
### its(:name), its(:arn), its(:created_at), its(:version), its(:endpoint), its(:role_arn), its(:logging), its(:identity), its(:status), its(:client_request_token), its(:platform_version), its(:tags), its(:encryption_config)
|
1359
|
+
### its(:name), its(:arn), its(:created_at), its(:version), its(:endpoint), its(:role_arn), its(:kubernetes_network_config), its(:logging), its(:identity), its(:status), its(:client_request_token), its(:platform_version), its(:tags), its(:encryption_config)
|
1331
1360
|
## <a name="elasticache">elasticache</a>
|
1332
1361
|
|
1333
1362
|
Elasticache resource type.
|
@@ -1396,7 +1425,7 @@ describe elasticache('my-rep-group-001') do
|
|
1396
1425
|
end
|
1397
1426
|
```
|
1398
1427
|
|
1399
|
-
### its(:cache_cluster_id), its(:configuration_endpoint), its(:client_download_landing_page), its(:cache_node_type), its(:engine), its(:engine_version), its(:cache_cluster_status), its(:num_cache_nodes), its(:preferred_availability_zone), its(:cache_cluster_create_time), its(:preferred_maintenance_window), its(:notification_configuration), its(:cache_security_groups), its(:cache_subnet_group_name), its(:cache_nodes), its(:auto_minor_version_upgrade), its(:replication_group_id), its(:snapshot_retention_limit), its(:snapshot_window), its(:auth_token_enabled), its(:auth_token_last_modified_date), its(:transit_encryption_enabled), its(:at_rest_encryption_enabled), its(:arn)
|
1428
|
+
### its(:cache_cluster_id), its(:configuration_endpoint), its(:client_download_landing_page), its(:cache_node_type), its(:engine), its(:engine_version), its(:cache_cluster_status), its(:num_cache_nodes), its(:preferred_availability_zone), its(:preferred_outpost_arn), its(:cache_cluster_create_time), its(:preferred_maintenance_window), its(:notification_configuration), its(:cache_security_groups), its(:cache_subnet_group_name), its(:cache_nodes), its(:auto_minor_version_upgrade), its(:replication_group_id), its(:snapshot_retention_limit), its(:snapshot_window), its(:auth_token_enabled), its(:auth_token_last_modified_date), its(:transit_encryption_enabled), its(:at_rest_encryption_enabled), its(:arn)
|
1400
1429
|
## <a name="elasticache_cache_parameter_group">elasticache_cache_parameter_group</a>
|
1401
1430
|
|
1402
1431
|
ElasticacheCacheParameterGroup resource type.
|
@@ -1620,7 +1649,7 @@ describe emr('my-emr') do
|
|
1620
1649
|
end
|
1621
1650
|
```
|
1622
1651
|
|
1623
|
-
### its(:id), its(:name), its(:instance_collection_type), its(:log_uri), its(:log_encryption_kms_key_id), its(:requested_ami_version), its(:running_ami_version), its(:release_label), its(:auto_terminate), its(:termination_protected), its(:visible_to_all_users), its(:service_role), its(:normalized_instance_hours), its(:master_public_dns_name), its(:configurations), its(:security_configuration), its(:auto_scaling_role), its(:scale_down_behavior), its(:custom_ami_id), its(:ebs_root_volume_size), its(:repo_upgrade_on_boot), its(:cluster_arn), its(:outpost_arn), its(:step_concurrency_level)
|
1652
|
+
### its(:id), its(:name), its(:instance_collection_type), its(:log_uri), its(:log_encryption_kms_key_id), its(:requested_ami_version), its(:running_ami_version), its(:release_label), its(:auto_terminate), its(:termination_protected), its(:visible_to_all_users), its(:service_role), its(:normalized_instance_hours), its(:master_public_dns_name), its(:configurations), its(:security_configuration), its(:auto_scaling_role), its(:scale_down_behavior), its(:custom_ami_id), its(:ebs_root_volume_size), its(:repo_upgrade_on_boot), its(:cluster_arn), its(:outpost_arn), its(:step_concurrency_level), its(:placement_groups)
|
1624
1653
|
## <a name="firehose">firehose</a>
|
1625
1654
|
|
1626
1655
|
Firehose resource type.
|
@@ -2182,7 +2211,7 @@ end
|
|
2182
2211
|
|
2183
2212
|
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)).
|
2184
2213
|
|
2185
|
-
### 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(:kms_key_arn), its(:master_arn), its(:revision_id), its(:layers), its(:state), its(:state_reason), its(:state_reason_code), its(:last_update_status), its(:last_update_status_reason), its(:last_update_status_reason_code)
|
2214
|
+
### 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(:kms_key_arn), its(:master_arn), its(:revision_id), its(:layers), its(:state), its(:state_reason), its(:state_reason_code), its(:last_update_status), its(:last_update_status_reason), its(:last_update_status_reason_code), its(:file_system_configs)
|
2186
2215
|
## <a name="launch_configuration">launch_configuration</a>
|
2187
2216
|
|
2188
2217
|
LaunchConfiguration resource type.
|
@@ -2206,7 +2235,7 @@ describe launch_configuration('my-lc') do
|
|
2206
2235
|
end
|
2207
2236
|
```
|
2208
2237
|
|
2209
|
-
### its(:launch_configuration_name), its(:launch_configuration_arn), its(:image_id), its(:key_name), its(:security_groups), its(:classic_link_vpc_id), its(:classic_link_vpc_security_groups), its(:user_data), its(:instance_type), its(:kernel_id), its(:ramdisk_id), its(:spot_price), its(:iam_instance_profile), its(:created_time), its(:ebs_optimized), its(:associate_public_ip_address), its(:placement_tenancy)
|
2238
|
+
### its(:launch_configuration_name), its(:launch_configuration_arn), its(:image_id), its(:key_name), its(:security_groups), its(:classic_link_vpc_id), its(:classic_link_vpc_security_groups), its(:user_data), its(:instance_type), its(:kernel_id), its(:ramdisk_id), its(:spot_price), its(:iam_instance_profile), its(:created_time), its(:ebs_optimized), its(:associate_public_ip_address), its(:placement_tenancy), its(:metadata_options)
|
2210
2239
|
## <a name="launch_template">launch_template</a>
|
2211
2240
|
|
2212
2241
|
LaunchTemplate resource type.
|
@@ -2304,7 +2333,31 @@ describe mq('my-mq') do
|
|
2304
2333
|
end
|
2305
2334
|
```
|
2306
2335
|
|
2307
|
-
### its(:vpc_id), its(:auto_minor_version_upgrade), its(:broker_arn), its(:broker_id), its(:broker_name), its(:broker_state), its(:created), its(:deployment_mode), its(:encryption_options), its(:engine_type), its(:engine_version), its(:host_instance_type), its(:pending_engine_version), its(:pending_host_instance_type), its(:pending_security_groups), its(:publicly_accessible), its(:security_groups), its(:storage_type), its(:subnet_ids)
|
2336
|
+
### its(:vpc_id), its(:authentication_strategy), its(:auto_minor_version_upgrade), its(:broker_arn), its(:broker_id), its(:broker_name), its(:broker_state), its(:created), its(:deployment_mode), its(:encryption_options), its(:engine_type), its(:engine_version), its(:host_instance_type), its(:ldap_server_metadata), its(:pending_authentication_strategy), its(:pending_engine_version), its(:pending_host_instance_type), its(:pending_ldap_server_metadata), its(:pending_security_groups), its(:publicly_accessible), its(:security_groups), its(:storage_type), its(:subnet_ids)
|
2337
|
+
## <a name="msk">msk</a>
|
2338
|
+
|
2339
|
+
Msk resource type.
|
2340
|
+
|
2341
|
+
### exist
|
2342
|
+
|
2343
|
+
```ruby
|
2344
|
+
describe msk('my-msk') do
|
2345
|
+
it { should exist }
|
2346
|
+
end
|
2347
|
+
```
|
2348
|
+
|
2349
|
+
|
2350
|
+
### be_active
|
2351
|
+
|
2352
|
+
### be_creating
|
2353
|
+
|
2354
|
+
### be_deleting
|
2355
|
+
|
2356
|
+
### be_failed
|
2357
|
+
|
2358
|
+
### be_updating
|
2359
|
+
|
2360
|
+
### its(:active_operation_arn), its(:client_authentication), its(:cluster_arn), its(:cluster_name), its(:creation_time), its(:current_version), its(:enhanced_monitoring), its(:number_of_broker_nodes), its(:state), its(:zookeeper_connect_string), its(:zookeeper_connect_string_tls)
|
2308
2361
|
## <a name="nat_gateway">nat_gateway</a>
|
2309
2362
|
|
2310
2363
|
NatGateway resource type.
|
@@ -2555,7 +2608,7 @@ describe nlb('my-nlb') do
|
|
2555
2608
|
end
|
2556
2609
|
```
|
2557
2610
|
|
2558
|
-
### its(:load_balancer_arn), its(:dns_name), its(:canonical_hosted_zone_id), its(:created_time), its(:load_balancer_name), its(:scheme), its(:vpc_id), its(:type), its(:security_groups), its(:ip_address_type)
|
2611
|
+
### its(:load_balancer_arn), its(:dns_name), its(:canonical_hosted_zone_id), its(:created_time), its(:load_balancer_name), its(:scheme), its(:vpc_id), its(:type), its(:security_groups), its(:ip_address_type), its(:customer_owned_ipv_4_pool)
|
2559
2612
|
## <a name="nlb_listener">nlb_listener</a>
|
2560
2613
|
|
2561
2614
|
NlbListener resource type.
|
@@ -2635,7 +2688,7 @@ end
|
|
2635
2688
|
```
|
2636
2689
|
|
2637
2690
|
|
2638
|
-
### its(:target_group_arn), its(:target_group_name), its(:protocol), its(:port), its(:vpc_id), its(:health_check_protocol), its(:health_check_port), its(:health_check_enabled), its(:health_check_interval_seconds), its(:health_check_timeout_seconds), its(:healthy_threshold_count), its(:unhealthy_threshold_count), its(:health_check_path), its(:load_balancer_arns), its(:target_type)
|
2691
|
+
### its(:target_group_arn), its(:target_group_name), its(:protocol), its(:port), its(:vpc_id), its(:health_check_protocol), its(:health_check_port), its(:health_check_enabled), its(:health_check_interval_seconds), its(:health_check_timeout_seconds), its(:healthy_threshold_count), its(:unhealthy_threshold_count), its(:health_check_path), its(:load_balancer_arns), its(:target_type), its(:protocol_version)
|
2639
2692
|
## <a name="rds">rds</a>
|
2640
2693
|
|
2641
2694
|
RDS resource type.
|
@@ -2732,7 +2785,7 @@ end
|
|
2732
2785
|
```
|
2733
2786
|
|
2734
2787
|
|
2735
|
-
### 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(:db_security_groups), 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(:read_replica_db_instance_identifiers), its(:read_replica_db_cluster_identifiers), its(:license_model), its(:iops), its(:character_set_name), its(:secondary_availability_zone), its(:publicly_accessible), its(:status_infos), 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(:domain_memberships), 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), its(:iam_database_authentication_enabled), its(:performance_insights_enabled), its(:performance_insights_kms_key_id), its(:performance_insights_retention_period), its(:enabled_cloudwatch_logs_exports), its(:processor_features), its(:deletion_protection), its(:associated_roles), its(:listener_endpoint), its(:max_allocated_storage)
|
2788
|
+
### 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(:db_security_groups), 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(:read_replica_db_instance_identifiers), its(:read_replica_db_cluster_identifiers), its(:replica_mode), its(:license_model), its(:iops), its(:character_set_name), its(:nchar_character_set_name), its(:secondary_availability_zone), its(:publicly_accessible), its(:status_infos), 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(:domain_memberships), 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), its(:iam_database_authentication_enabled), its(:performance_insights_enabled), its(:performance_insights_kms_key_id), its(:performance_insights_retention_period), its(:enabled_cloudwatch_logs_exports), its(:processor_features), its(:deletion_protection), its(:associated_roles), its(:listener_endpoint), its(:max_allocated_storage), its(:tag_list)
|
2736
2789
|
### :unlock: Advanced use
|
2737
2790
|
|
2738
2791
|
`rds` can use `Aws::RDS::DBInstance` resource (see http://docs.aws.amazon.com/sdkforruby/api/Aws/RDS/DBInstance.html).
|
@@ -3180,7 +3233,7 @@ describe secretsmanager('my-secret') do
|
|
3180
3233
|
end
|
3181
3234
|
```
|
3182
3235
|
|
3183
|
-
### its(:arn), its(:name), its(:description), its(:kms_key_id), its(:rotation_enabled), its(:rotation_lambda_arn), its(:last_rotated_date), its(:last_changed_date), its(:last_accessed_date), its(:deleted_date), its(:owning_service)
|
3236
|
+
### its(:arn), its(:name), its(:description), its(:kms_key_id), its(:rotation_enabled), its(:rotation_lambda_arn), its(:last_rotated_date), its(:last_changed_date), its(:last_accessed_date), its(:deleted_date), its(:owning_service), its(:created_date)
|
3184
3237
|
## <a name="security_group">security_group</a>
|
3185
3238
|
|
3186
3239
|
SecurityGroup resource type.
|
@@ -3456,6 +3509,40 @@ describe subnet('my-subnet') do
|
|
3456
3509
|
end
|
3457
3510
|
```
|
3458
3511
|
|
3512
|
+
## <a name="transit_gateway">transit_gateway</a>
|
3513
|
+
|
3514
|
+
TransitGateway resource type.
|
3515
|
+
|
3516
|
+
### exist
|
3517
|
+
|
3518
|
+
```ruby
|
3519
|
+
describe transit_gateway('tgw-1234567890abcdefg') do
|
3520
|
+
it { should exist }
|
3521
|
+
it { should have_tag('Name').value('my-tgw') }
|
3522
|
+
it { should have_attachment('tgw-attach-1234567890abcdefg') }
|
3523
|
+
its('options.amazon_side_asn') { should eq 64_516 }
|
3524
|
+
its('options.auto_accept_shared_attachments') { should eq 'enable' }
|
3525
|
+
its('options.default_route_table_association') { should eq 'enable' }
|
3526
|
+
its('options.default_route_table_propagation') { should eq 'enable' }
|
3527
|
+
its('options.dns_support') { should eq 'enable' }
|
3528
|
+
its('options.vpn_ecmp_support') { should eq 'enable' }
|
3529
|
+
its('options.association_default_route_table_id') { should eq 'tgw-rtb-0123456789abcdefg' }
|
3530
|
+
its('options.propagation_default_route_table_id') { should eq 'tgw-rtb-0123456789abcdefg' }
|
3531
|
+
end
|
3532
|
+
```
|
3533
|
+
|
3534
|
+
```ruby
|
3535
|
+
describe transit_gateway('my-tgw') do
|
3536
|
+
it { should exist }
|
3537
|
+
its(:transit_gateway_id) { should eq 'tgw-1234567890abcdefg' }
|
3538
|
+
end
|
3539
|
+
```
|
3540
|
+
|
3541
|
+
### have_attachment
|
3542
|
+
|
3543
|
+
### have_tag
|
3544
|
+
|
3545
|
+
### its(:transit_gateway_id), its(:transit_gateway_arn), its(:state), its(:owner_id), its(:description), its(:creation_time)
|
3459
3546
|
## <a name="vpc">vpc</a>
|
3460
3547
|
|
3461
3548
|
VPC resource type.
|
@@ -3558,6 +3645,86 @@ describe vpc('my-vpc') do
|
|
3558
3645
|
end
|
3559
3646
|
```
|
3560
3647
|
|
3648
|
+
## <a name="vpc_endpoints">vpc_endpoints</a>
|
3649
|
+
|
3650
|
+
VpcEndpoints resource type.
|
3651
|
+
|
3652
|
+
### exist
|
3653
|
+
|
3654
|
+
```ruby
|
3655
|
+
describe vpc_endpoints('my-vpc-endpoint') do
|
3656
|
+
it { should exist }
|
3657
|
+
end
|
3658
|
+
```
|
3659
|
+
|
3660
|
+
describe vpc_endpoints('vpce-05907f23265b25f20'), region: $tfvars["region"]["value"] do
|
3661
|
+
it { should exist }
|
3662
|
+
it { should be_available }
|
3663
|
+
it { should have_subnet('subnet-040e19eabf3226f99') }
|
3664
|
+
it { should belong_to_vpc('vpc-00af9dcc0134b48e0') }
|
3665
|
+
its(:private_dns_enabled) { should eq true }
|
3666
|
+
its(:vpc_endpoint_type) { should eq 'Interface' }
|
3667
|
+
its(:service_name) { should eq 'com.amazonaws.eu-west-1.codebuild' }
|
3668
|
+
end
|
3669
|
+
|
3670
|
+
|
3671
|
+
### be_available
|
3672
|
+
|
3673
|
+
### be_deleted
|
3674
|
+
|
3675
|
+
### be_deleting
|
3676
|
+
|
3677
|
+
### be_expired
|
3678
|
+
|
3679
|
+
### be_failed
|
3680
|
+
|
3681
|
+
### be_pending
|
3682
|
+
|
3683
|
+
### be_pendingacceptance
|
3684
|
+
|
3685
|
+
### be_rejected
|
3686
|
+
|
3687
|
+
### have_route_table
|
3688
|
+
|
3689
|
+
```ruby
|
3690
|
+
describe vpc_endpoints('my-vpc-endpoint') do
|
3691
|
+
it { should have_route_table('rtb-abc123') }
|
3692
|
+
end
|
3693
|
+
```
|
3694
|
+
|
3695
|
+
|
3696
|
+
### have_subnet
|
3697
|
+
|
3698
|
+
```ruby
|
3699
|
+
describe vpc_endpoints('my-vpc-endpoint') do
|
3700
|
+
it { should have_subnet('subnet-abc123') }
|
3701
|
+
end
|
3702
|
+
```
|
3703
|
+
|
3704
|
+
|
3705
|
+
### have_tag
|
3706
|
+
|
3707
|
+
```ruby
|
3708
|
+
describe vpc_endpoints('my-vpc-endpoint') do
|
3709
|
+
it { should have_tag('env').value('dev') }
|
3710
|
+
end
|
3711
|
+
```
|
3712
|
+
|
3713
|
+
|
3714
|
+
|
3715
|
+
### :unlock: Advanced use
|
3716
|
+
|
3717
|
+
`vpc_endpoints` can use `Aws::EC2::Types::VpcEndpoint` resource (see https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Types/VpcEndpoint.html).
|
3718
|
+
|
3719
|
+
```ruby
|
3720
|
+
describe vpc_endpoints('my-vpc-endpoint') do
|
3721
|
+
its(:private_dns_enabled) { should eq true }
|
3722
|
+
its(:vpc_endpoint_type) { should eq 'Interface' }
|
3723
|
+
its(:service_name) { should eq 'com.amazonaws.eu-west-1.codebuild' }
|
3724
|
+
end
|
3725
|
+
```
|
3726
|
+
|
3727
|
+
|
3561
3728
|
## <a name="vpn_connection">vpn_connection</a>
|
3562
3729
|
|
3563
3730
|
VpnConnection resource type.
|