cthiesfork-awspec 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.editorconfig +12 -0
- data/.rubocop.yml +93 -0
- data/.tachikoma.yml +1 -0
- data/.travis.yml +21 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +191 -0
- data/Rakefile +64 -0
- data/awspec-logo.png +0 -0
- data/awspec.gemspec +37 -0
- data/bin/console +7 -0
- data/bin/setup +5 -0
- data/bin/toolbox +5 -0
- data/doc/_resource_types/acm.md +24 -0
- data/doc/_resource_types/alb.md +47 -0
- data/doc/_resource_types/alb_listener.md +29 -0
- data/doc/_resource_types/alb_target_group.md +35 -0
- data/doc/_resource_types/ami.md +19 -0
- data/doc/_resource_types/apigateway.md +7 -0
- data/doc/_resource_types/autoscaling_group.md +47 -0
- data/doc/_resource_types/batch_compute_environment.md +23 -0
- data/doc/_resource_types/batch_job_definition.md +7 -0
- data/doc/_resource_types/batch_job_queue.md +23 -0
- data/doc/_resource_types/cloudformation_stack.md +8 -0
- data/doc/_resource_types/cloudfront_distribution.md +67 -0
- data/doc/_resource_types/cloudtrail.md +47 -0
- data/doc/_resource_types/cloudwatch_alarm.md +39 -0
- data/doc/_resource_types/cloudwatch_logs.md +48 -0
- data/doc/_resource_types/codebuild.md +1 -0
- data/doc/_resource_types/codedeploy.md +1 -0
- data/doc/_resource_types/codedeploy_deployment_group.md +17 -0
- data/doc/_resource_types/customer_gateway.md +25 -0
- data/doc/_resource_types/directconnect_virtual_interface.md +30 -0
- data/doc/_resource_types/dynamodb_table.md +52 -0
- data/doc/_resource_types/ebs.md +49 -0
- data/doc/_resource_types/ec2.md +203 -0
- data/doc/_resource_types/ec2_account_attributes.md +8 -0
- data/doc/_resource_types/ecs_cluster.md +23 -0
- data/doc/_resource_types/ecs_container_instance.md +18 -0
- data/doc/_resource_types/ecs_service.md +15 -0
- data/doc/_resource_types/ecs_task_definition.md +15 -0
- data/doc/_resource_types/efs.md +15 -0
- data/doc/_resource_types/eip.md +23 -0
- data/doc/_resource_types/eks.md +14 -0
- data/doc/_resource_types/elasticache.md +57 -0
- data/doc/_resource_types/elasticache_cache_parameter_group.md +17 -0
- data/doc/_resource_types/elasticsearch.md +48 -0
- data/doc/_resource_types/elastictranscoder_pipeline.md +15 -0
- data/doc/_resource_types/elb.md +82 -0
- data/doc/_resource_types/emr.md +21 -0
- data/doc/_resource_types/firehose.md +31 -0
- data/doc/_resource_types/iam_group.md +94 -0
- data/doc/_resource_types/iam_policy.md +39 -0
- data/doc/_resource_types/iam_role.md +78 -0
- data/doc/_resource_types/iam_user.md +86 -0
- data/doc/_resource_types/internet_gateway.md +31 -0
- data/doc/_resource_types/kinesis.md +7 -0
- data/doc/_resource_types/kms.md +70 -0
- data/doc/_resource_types/lambda.md +40 -0
- data/doc/_resource_types/lambda_account_settings.md +10 -0
- data/doc/_resource_types/launch_configuration.md +15 -0
- data/doc/_resource_types/launch_template.md +48 -0
- data/doc/_resource_types/mq.md +33 -0
- data/doc/_resource_types/nat_gateway.md +39 -0
- data/doc/_resource_types/network_acl.md +61 -0
- data/doc/_resource_types/network_interface.md +66 -0
- data/doc/_resource_types/nlb.md +41 -0
- data/doc/_resource_types/nlb_listener.md +29 -0
- data/doc/_resource_types/nlb_target_group.md +35 -0
- data/doc/_resource_types/rds.md +100 -0
- data/doc/_resource_types/rds_account_attributes.md +8 -0
- data/doc/_resource_types/rds_db_cluster_parameter_group.md +16 -0
- data/doc/_resource_types/rds_db_parameter_group.md +15 -0
- data/doc/_resource_types/redshift.md +61 -0
- data/doc/_resource_types/redshift_cluster_parameter_group.md +17 -0
- data/doc/_resource_types/route53_hosted_zone.md +27 -0
- data/doc/_resource_types/route_table.md +60 -0
- data/doc/_resource_types/s3_bucket.md +158 -0
- data/doc/_resource_types/secretsmanager.md +15 -0
- data/doc/_resource_types/security_group.md +44 -0
- data/doc/_resource_types/ses_identity.md +17 -0
- data/doc/_resource_types/ses_send_quota.md +9 -0
- data/doc/_resource_types/sns_topic.md +134 -0
- data/doc/_resource_types/sqs.md +7 -0
- data/doc/_resource_types/ssm_parameter.md +33 -0
- data/doc/_resource_types/subnet.md +41 -0
- data/doc/_resource_types/vpc.md +88 -0
- data/doc/_resource_types/vpn_connection.md +25 -0
- data/doc/_resource_types/vpn_gateway.md +25 -0
- data/doc/_resource_types/waf_web_acl.md +29 -0
- data/doc/_resource_types/wafregional_web_acl.md +29 -0
- data/doc/contributing.md +45 -0
- data/doc/resource_types.md +3852 -0
- data/exe/awspec +5 -0
- data/lib/awspec.rb +23 -0
- data/lib/awspec/cli.rb +25 -0
- data/lib/awspec/command/generate.rb +69 -0
- data/lib/awspec/config.rb +41 -0
- data/lib/awspec/error.rb +32 -0
- data/lib/awspec/ext.rb +4 -0
- data/lib/awspec/ext/array.rb +8 -0
- data/lib/awspec/ext/hash.rb +10 -0
- data/lib/awspec/ext/string.rb +17 -0
- data/lib/awspec/ext/struct.rb +8 -0
- data/lib/awspec/generator.rb +55 -0
- data/lib/awspec/generator/doc/type.rb +60 -0
- data/lib/awspec/generator/doc/type/account.rb +71 -0
- data/lib/awspec/generator/doc/type/account_attribute.rb +69 -0
- data/lib/awspec/generator/doc/type/account_attribute_base.rb +32 -0
- data/lib/awspec/generator/doc/type/acm.rb +19 -0
- data/lib/awspec/generator/doc/type/alb.rb +21 -0
- data/lib/awspec/generator/doc/type/alb_listener.rb +18 -0
- data/lib/awspec/generator/doc/type/alb_target_group.rb +17 -0
- data/lib/awspec/generator/doc/type/ami.rb +19 -0
- data/lib/awspec/generator/doc/type/apigateway.rb +17 -0
- data/lib/awspec/generator/doc/type/autoscaling_group.rb +16 -0
- data/lib/awspec/generator/doc/type/base.rb +99 -0
- data/lib/awspec/generator/doc/type/batch_compute_environment.rb +23 -0
- data/lib/awspec/generator/doc/type/batch_job_definition.rb +17 -0
- data/lib/awspec/generator/doc/type/batch_job_queue.rb +17 -0
- data/lib/awspec/generator/doc/type/cloudformation_stack.rb +17 -0
- data/lib/awspec/generator/doc/type/cloudfront_distribution.rb +20 -0
- data/lib/awspec/generator/doc/type/cloudtrail.rb +17 -0
- data/lib/awspec/generator/doc/type/cloudwatch_alarm.rb +17 -0
- data/lib/awspec/generator/doc/type/cloudwatch_event.rb +17 -0
- data/lib/awspec/generator/doc/type/cloudwatch_logs.rb +17 -0
- data/lib/awspec/generator/doc/type/codebuild.rb +17 -0
- data/lib/awspec/generator/doc/type/codedeploy.rb +17 -0
- data/lib/awspec/generator/doc/type/codedeploy_deployment_group.rb +17 -0
- data/lib/awspec/generator/doc/type/customer_gateway.rb +19 -0
- data/lib/awspec/generator/doc/type/directconnect_virtual_interface.rb +21 -0
- data/lib/awspec/generator/doc/type/dynamodb_table.rb +19 -0
- data/lib/awspec/generator/doc/type/ebs.rb +19 -0
- data/lib/awspec/generator/doc/type/ec2.rb +21 -0
- data/lib/awspec/generator/doc/type/ec2_account_attributes.rb +17 -0
- data/lib/awspec/generator/doc/type/ecr_repository.rb +15 -0
- data/lib/awspec/generator/doc/type/ecs_cluster.rb +19 -0
- data/lib/awspec/generator/doc/type/ecs_container_instance.rb +19 -0
- data/lib/awspec/generator/doc/type/ecs_service.rb +19 -0
- data/lib/awspec/generator/doc/type/ecs_task_definition.rb +19 -0
- data/lib/awspec/generator/doc/type/efs.rb +17 -0
- data/lib/awspec/generator/doc/type/eip.rb +17 -0
- data/lib/awspec/generator/doc/type/eks.rb +20 -0
- data/lib/awspec/generator/doc/type/elasticache.rb +22 -0
- data/lib/awspec/generator/doc/type/elasticache_cache_parameter_group.rb +17 -0
- data/lib/awspec/generator/doc/type/elasticsearch.rb +17 -0
- data/lib/awspec/generator/doc/type/elastictranscoder_pipeline.rb +21 -0
- data/lib/awspec/generator/doc/type/elb.rb +21 -0
- data/lib/awspec/generator/doc/type/emr.rb +19 -0
- data/lib/awspec/generator/doc/type/firehose.rb +17 -0
- data/lib/awspec/generator/doc/type/iam_group.rb +17 -0
- data/lib/awspec/generator/doc/type/iam_policy.rb +17 -0
- data/lib/awspec/generator/doc/type/iam_role.rb +17 -0
- data/lib/awspec/generator/doc/type/iam_user.rb +17 -0
- data/lib/awspec/generator/doc/type/internet_gateway.rb +17 -0
- data/lib/awspec/generator/doc/type/kinesis.rb +17 -0
- data/lib/awspec/generator/doc/type/kms.rb +17 -0
- data/lib/awspec/generator/doc/type/lambda.rb +17 -0
- data/lib/awspec/generator/doc/type/lambda_account_settings.rb +17 -0
- data/lib/awspec/generator/doc/type/launch_configuration.rb +17 -0
- data/lib/awspec/generator/doc/type/launch_template.rb +17 -0
- data/lib/awspec/generator/doc/type/mq.rb +19 -0
- data/lib/awspec/generator/doc/type/nat_gateway.rb +20 -0
- data/lib/awspec/generator/doc/type/network_acl.rb +20 -0
- data/lib/awspec/generator/doc/type/network_interface.rb +21 -0
- data/lib/awspec/generator/doc/type/nlb.rb +20 -0
- data/lib/awspec/generator/doc/type/nlb_listener.rb +18 -0
- data/lib/awspec/generator/doc/type/nlb_target_group.rb +17 -0
- data/lib/awspec/generator/doc/type/rds.rb +22 -0
- data/lib/awspec/generator/doc/type/rds_account_attributes.rb +17 -0
- data/lib/awspec/generator/doc/type/rds_db_cluster_parameter_group.rb +15 -0
- data/lib/awspec/generator/doc/type/rds_db_parameter_group.rb +15 -0
- data/lib/awspec/generator/doc/type/redshift.rb +21 -0
- data/lib/awspec/generator/doc/type/redshift_cluster_parameter_group.rb +17 -0
- data/lib/awspec/generator/doc/type/route53_hosted_zone.rb +16 -0
- data/lib/awspec/generator/doc/type/route_table.rb +16 -0
- data/lib/awspec/generator/doc/type/s3_bucket.rb +16 -0
- data/lib/awspec/generator/doc/type/secretsmanager.rb +17 -0
- data/lib/awspec/generator/doc/type/security_group.rb +16 -0
- data/lib/awspec/generator/doc/type/ses_identity.rb +22 -0
- data/lib/awspec/generator/doc/type/ses_send_quota.rb +17 -0
- data/lib/awspec/generator/doc/type/sns_topic.rb +18 -0
- data/lib/awspec/generator/doc/type/sqs.rb +17 -0
- data/lib/awspec/generator/doc/type/ssm_parameter.rb +17 -0
- data/lib/awspec/generator/doc/type/subnet.rb +18 -0
- data/lib/awspec/generator/doc/type/vpc.rb +19 -0
- data/lib/awspec/generator/doc/type/vpn_connection.rb +19 -0
- data/lib/awspec/generator/doc/type/vpn_gateway.rb +19 -0
- data/lib/awspec/generator/doc/type/waf_web_acl.rb +17 -0
- data/lib/awspec/generator/doc/type/wafregional_web_acl.rb +17 -0
- data/lib/awspec/generator/spec/acm.rb +43 -0
- data/lib/awspec/generator/spec/alb.rb +38 -0
- data/lib/awspec/generator/spec/alb_listener.rb +110 -0
- data/lib/awspec/generator/spec/autoscaling_group.rb +56 -0
- data/lib/awspec/generator/spec/cloudwatch_alarm.rb +43 -0
- data/lib/awspec/generator/spec/cloudwatch_event.rb +27 -0
- data/lib/awspec/generator/spec/cloudwatch_logs.rb +68 -0
- data/lib/awspec/generator/spec/codebuild.rb +23 -0
- data/lib/awspec/generator/spec/directconnect.rb +33 -0
- data/lib/awspec/generator/spec/ebs.rb +55 -0
- data/lib/awspec/generator/spec/ec2.rb +82 -0
- data/lib/awspec/generator/spec/efs.rb +28 -0
- data/lib/awspec/generator/spec/eip.rb +30 -0
- data/lib/awspec/generator/spec/elasticsearch.rb +41 -0
- data/lib/awspec/generator/spec/elb.rb +59 -0
- data/lib/awspec/generator/spec/iam_group.rb +39 -0
- data/lib/awspec/generator/spec/iam_policy.rb +56 -0
- data/lib/awspec/generator/spec/iam_role.rb +39 -0
- data/lib/awspec/generator/spec/iam_user.rb +39 -0
- data/lib/awspec/generator/spec/internet_gateway.rb +35 -0
- data/lib/awspec/generator/spec/kms.rb +34 -0
- data/lib/awspec/generator/spec/lambda.rb +29 -0
- data/lib/awspec/generator/spec/nat_gateway.rb +39 -0
- data/lib/awspec/generator/spec/network_acl.rb +96 -0
- data/lib/awspec/generator/spec/network_interface.rb +80 -0
- data/lib/awspec/generator/spec/nlb.rb +38 -0
- data/lib/awspec/generator/spec/nlb_listener.rb +110 -0
- data/lib/awspec/generator/spec/rds.rb +62 -0
- data/lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb +23 -0
- data/lib/awspec/generator/spec/rds_db_parameter_group.rb +23 -0
- data/lib/awspec/generator/spec/redshift.rb +65 -0
- data/lib/awspec/generator/spec/redshift_cluster_parameter_group.rb +23 -0
- data/lib/awspec/generator/spec/route53_hosted_zone.rb +72 -0
- data/lib/awspec/generator/spec/route_table.rb +128 -0
- data/lib/awspec/generator/spec/s3_bucket.rb +124 -0
- data/lib/awspec/generator/spec/security_group.rb +95 -0
- data/lib/awspec/generator/spec/subnet.rb +47 -0
- data/lib/awspec/generator/spec/vpc.rb +65 -0
- data/lib/awspec/generator/template.rb +145 -0
- data/lib/awspec/helper.rb +8 -0
- data/lib/awspec/helper/client_wrap.rb +49 -0
- data/lib/awspec/helper/color.rb +5 -0
- data/lib/awspec/helper/finder.rb +168 -0
- data/lib/awspec/helper/finder/account_attributes.rb +61 -0
- data/lib/awspec/helper/finder/acm.rb +40 -0
- data/lib/awspec/helper/finder/alb.rb +68 -0
- data/lib/awspec/helper/finder/ami.rb +22 -0
- data/lib/awspec/helper/finder/apigateway.rb +35 -0
- data/lib/awspec/helper/finder/autoscaling.rb +60 -0
- data/lib/awspec/helper/finder/batch.rb +20 -0
- data/lib/awspec/helper/finder/cloudformation.rb +12 -0
- data/lib/awspec/helper/finder/cloudfront.rb +21 -0
- data/lib/awspec/helper/finder/cloudtrail.rb +29 -0
- data/lib/awspec/helper/finder/cloudwatch.rb +33 -0
- data/lib/awspec/helper/finder/cloudwatch_event.rb +15 -0
- data/lib/awspec/helper/finder/cloudwatch_logs.rb +93 -0
- data/lib/awspec/helper/finder/codebuild.rb +24 -0
- data/lib/awspec/helper/finder/codedeploy.rb +15 -0
- data/lib/awspec/helper/finder/directconnect.rb +19 -0
- data/lib/awspec/helper/finder/dynamodb.rb +10 -0
- data/lib/awspec/helper/finder/ebs.rb +43 -0
- data/lib/awspec/helper/finder/ec2.rb +203 -0
- data/lib/awspec/helper/finder/ecr.rb +10 -0
- data/lib/awspec/helper/finder/ecs.rb +45 -0
- data/lib/awspec/helper/finder/efs.rb +63 -0
- data/lib/awspec/helper/finder/eks.rb +10 -0
- data/lib/awspec/helper/finder/elasticache.rb +21 -0
- data/lib/awspec/helper/finder/elasticsearch.rb +19 -0
- data/lib/awspec/helper/finder/elastictranscoder.rb +21 -0
- data/lib/awspec/helper/finder/elb.rb +37 -0
- data/lib/awspec/helper/finder/emr.rb +9 -0
- data/lib/awspec/helper/finder/firehose.rb +13 -0
- data/lib/awspec/helper/finder/iam.rb +118 -0
- data/lib/awspec/helper/finder/kinesis.rb +14 -0
- data/lib/awspec/helper/finder/kms.rb +38 -0
- data/lib/awspec/helper/finder/lambda.rb +35 -0
- data/lib/awspec/helper/finder/mq.rb +11 -0
- data/lib/awspec/helper/finder/nlb.rb +68 -0
- data/lib/awspec/helper/finder/rds.rb +59 -0
- data/lib/awspec/helper/finder/redshift.rb +37 -0
- data/lib/awspec/helper/finder/route53.rb +41 -0
- data/lib/awspec/helper/finder/s3.rb +80 -0
- data/lib/awspec/helper/finder/secretsmanager.rb +11 -0
- data/lib/awspec/helper/finder/security_group.rb +35 -0
- data/lib/awspec/helper/finder/ses.rb +13 -0
- data/lib/awspec/helper/finder/sns_topic.rb +82 -0
- data/lib/awspec/helper/finder/sqs.rb +17 -0
- data/lib/awspec/helper/finder/ssm_parameter.rb +32 -0
- data/lib/awspec/helper/finder/subnet.rb +29 -0
- data/lib/awspec/helper/finder/vpc.rb +115 -0
- data/lib/awspec/helper/finder/waf.rb +53 -0
- data/lib/awspec/helper/finder/wafregional.rb +53 -0
- data/lib/awspec/helper/type.rb +72 -0
- data/lib/awspec/matcher.rb +85 -0
- data/lib/awspec/matcher/be_allowed.rb +25 -0
- data/lib/awspec/matcher/be_allowed_action.rb +19 -0
- data/lib/awspec/matcher/be_attached_to.rb +19 -0
- data/lib/awspec/matcher/be_connected_to_vpc.rb +13 -0
- data/lib/awspec/matcher/be_denied.rb +25 -0
- data/lib/awspec/matcher/be_opened.rb +17 -0
- data/lib/awspec/matcher/be_opened_only.rb +17 -0
- data/lib/awspec/matcher/belong_to_alb.rb +8 -0
- data/lib/awspec/matcher/belong_to_cache_subnet_group.rb +5 -0
- data/lib/awspec/matcher/belong_to_cluster_subnet_group.rb +5 -0
- data/lib/awspec/matcher/belong_to_db_subnet_group.rb +5 -0
- data/lib/awspec/matcher/belong_to_domain.rb +5 -0
- data/lib/awspec/matcher/belong_to_iam_group.rb +8 -0
- data/lib/awspec/matcher/belong_to_metric.rb +13 -0
- data/lib/awspec/matcher/belong_to_nlb.rb +8 -0
- data/lib/awspec/matcher/belong_to_replication_group.rb +6 -0
- data/lib/awspec/matcher/belong_to_subnet.rb +31 -0
- data/lib/awspec/matcher/belong_to_vpc.rb +8 -0
- data/lib/awspec/matcher/have_attribute_definition.rb +9 -0
- data/lib/awspec/matcher/have_cluster_parameter_group.rb +9 -0
- data/lib/awspec/matcher/have_custom_response_error_code.rb +21 -0
- data/lib/awspec/matcher/have_db_parameter_group.rb +9 -0
- data/lib/awspec/matcher/have_env_var.rb +9 -0
- data/lib/awspec/matcher/have_env_var_value.rb +18 -0
- data/lib/awspec/matcher/have_env_vars.rb +5 -0
- data/lib/awspec/matcher/have_inline_policy.rb +9 -0
- data/lib/awspec/matcher/have_key_policy.rb +9 -0
- data/lib/awspec/matcher/have_key_schema.rb +9 -0
- data/lib/awspec/matcher/have_network_interface.rb +15 -0
- data/lib/awspec/matcher/have_option_group.rb +9 -0
- data/lib/awspec/matcher/have_origin.rb +21 -0
- data/lib/awspec/matcher/have_private_ip_address.rb +9 -0
- data/lib/awspec/matcher/have_record_set.rb +41 -0
- data/lib/awspec/matcher/have_route.rb +34 -0
- data/lib/awspec/matcher/have_rule.rb +36 -0
- data/lib/awspec/matcher/have_subscription_attributes.rb +16 -0
- data/lib/awspec/matcher/have_subscription_filter.rb +9 -0
- data/lib/awspec/matcher/have_tag.rb +13 -0
- data/lib/awspec/matcher/have_vpc_peering_connection.rb +13 -0
- data/lib/awspec/matcher/include_subscribed.rb +5 -0
- data/lib/awspec/resource_reader.rb +58 -0
- data/lib/awspec/setup.rb +84 -0
- data/lib/awspec/shared_context.rb +37 -0
- data/lib/awspec/stub.rb +7 -0
- data/lib/awspec/stub/account.rb +147 -0
- data/lib/awspec/stub/acm.rb +34 -0
- data/lib/awspec/stub/alb.rb +261 -0
- data/lib/awspec/stub/alb_listener.rb +307 -0
- data/lib/awspec/stub/alb_target_group.rb +325 -0
- data/lib/awspec/stub/ami.rb +58 -0
- data/lib/awspec/stub/apigateway.rb +89 -0
- data/lib/awspec/stub/autoscaling_group.rb +241 -0
- data/lib/awspec/stub/batch_compute_environment.rb +40 -0
- data/lib/awspec/stub/batch_job_definition.rb +28 -0
- data/lib/awspec/stub/batch_job_queue.rb +22 -0
- data/lib/awspec/stub/cloudformation_stack.rb +49 -0
- data/lib/awspec/stub/cloudfront_distribution.rb +230 -0
- data/lib/awspec/stub/cloudtrail.rb +35 -0
- data/lib/awspec/stub/cloudwatch_alarm.rb +40 -0
- data/lib/awspec/stub/cloudwatch_event.rb +15 -0
- data/lib/awspec/stub/cloudwatch_logs.rb +41 -0
- data/lib/awspec/stub/codebuild.rb +10 -0
- data/lib/awspec/stub/codedeploy.rb +12 -0
- data/lib/awspec/stub/codedeploy_deployment_group.rb +39 -0
- data/lib/awspec/stub/customer_gateway.rb +16 -0
- data/lib/awspec/stub/directconnect_virtual_interface.rb +25 -0
- data/lib/awspec/stub/duplicated_resource_type.rb +26 -0
- data/lib/awspec/stub/dynamodb_table.rb +34 -0
- data/lib/awspec/stub/ebs.rb +67 -0
- data/lib/awspec/stub/ec2.rb +235 -0
- data/lib/awspec/stub/ec2_has_multi_security_groups.rb +21 -0
- data/lib/awspec/stub/ecr_repository.rb +13 -0
- data/lib/awspec/stub/ecs.rb +199 -0
- data/lib/awspec/stub/ecs_cluster.rb +99 -0
- data/lib/awspec/stub/ecs_container_instance.rb +78 -0
- data/lib/awspec/stub/ecs_service.rb +51 -0
- data/lib/awspec/stub/ecs_task_definition.rb +58 -0
- data/lib/awspec/stub/efs.rb +43 -0
- data/lib/awspec/stub/eip.rb +13 -0
- data/lib/awspec/stub/eks.rb +28 -0
- data/lib/awspec/stub/elasticache.rb +91 -0
- data/lib/awspec/stub/elasticache_cache_parameter_group.rb +28 -0
- data/lib/awspec/stub/elasticsearch.rb +52 -0
- data/lib/awspec/stub/elastictranscoder_pipeline.rb +63 -0
- data/lib/awspec/stub/elb.rb +166 -0
- data/lib/awspec/stub/emr.rb +65 -0
- data/lib/awspec/stub/firehose.rb +24 -0
- data/lib/awspec/stub/iam_group.rb +90 -0
- data/lib/awspec/stub/iam_policy.rb +70 -0
- data/lib/awspec/stub/iam_role.rb +60 -0
- data/lib/awspec/stub/iam_user.rb +71 -0
- data/lib/awspec/stub/internet_gateway.rb +36 -0
- data/lib/awspec/stub/kinesis.rb +37 -0
- data/lib/awspec/stub/kms.rb +75 -0
- data/lib/awspec/stub/lambda.rb +47 -0
- data/lib/awspec/stub/launch_configuration.rb +56 -0
- data/lib/awspec/stub/launch_template.rb +16 -0
- data/lib/awspec/stub/mq.rb +111 -0
- data/lib/awspec/stub/nat_gateway.rb +41 -0
- data/lib/awspec/stub/network_acl.rb +97 -0
- data/lib/awspec/stub/network_interface.rb +144 -0
- data/lib/awspec/stub/nlb.rb +119 -0
- data/lib/awspec/stub/nlb_listener.rb +131 -0
- data/lib/awspec/stub/nlb_target_group.rb +187 -0
- data/lib/awspec/stub/rds.rb +106 -0
- data/lib/awspec/stub/rds_db_cluster_parameter_group.rb +20 -0
- data/lib/awspec/stub/rds_db_parameter_group.rb +20 -0
- data/lib/awspec/stub/redshift.rb +67 -0
- data/lib/awspec/stub/redshift_cluster_parameter_group.rb +20 -0
- data/lib/awspec/stub/route53_hosted_zone.rb +169 -0
- data/lib/awspec/stub/route_table.rb +207 -0
- data/lib/awspec/stub/s3_bucket.rb +135 -0
- data/lib/awspec/stub/secretsmanager.rb +36 -0
- data/lib/awspec/stub/security_group.rb +159 -0
- data/lib/awspec/stub/ses_identity.rb +41 -0
- data/lib/awspec/stub/sns_topic.rb +29 -0
- data/lib/awspec/stub/sqs.rb +30 -0
- data/lib/awspec/stub/ssm_parameter.rb +16 -0
- data/lib/awspec/stub/subnet.rb +33 -0
- data/lib/awspec/stub/vpc.rb +114 -0
- data/lib/awspec/stub/vpn_connection.rb +20 -0
- data/lib/awspec/stub/vpn_gateway.rb +15 -0
- data/lib/awspec/stub/waf_web_acl.rb +62 -0
- data/lib/awspec/stub/wafregional_web_acl.rb +62 -0
- data/lib/awspec/toolbox.rb +18 -0
- data/lib/awspec/type/account.rb +39 -0
- data/lib/awspec/type/account_attribute.rb +28 -0
- data/lib/awspec/type/account_attribute_base.rb +4 -0
- data/lib/awspec/type/acm.rb +41 -0
- data/lib/awspec/type/alb.rb +54 -0
- data/lib/awspec/type/alb_listener.rb +43 -0
- data/lib/awspec/type/alb_target_group.rb +22 -0
- data/lib/awspec/type/ami.rb +25 -0
- data/lib/awspec/type/apigateway.rb +24 -0
- data/lib/awspec/type/autoscaling_group.rb +54 -0
- data/lib/awspec/type/base.rb +63 -0
- data/lib/awspec/type/batch_compute_environment.rb +32 -0
- data/lib/awspec/type/batch_job_definition.rb +16 -0
- data/lib/awspec/type/batch_job_queue.rb +31 -0
- data/lib/awspec/type/cloudformation_stack.rb +11 -0
- data/lib/awspec/type/cloudfront_distribution.rb +60 -0
- data/lib/awspec/type/cloudtrail.rb +35 -0
- data/lib/awspec/type/cloudwatch_alarm.rb +23 -0
- data/lib/awspec/type/cloudwatch_event.rb +19 -0
- data/lib/awspec/type/cloudwatch_logs.rb +37 -0
- data/lib/awspec/type/codebuild.rb +11 -0
- data/lib/awspec/type/codedeploy.rb +11 -0
- data/lib/awspec/type/codedeploy_deployment_group.rb +33 -0
- data/lib/awspec/type/customer_gateway.rb +40 -0
- data/lib/awspec/type/directconnect_virtual_interface.rb +27 -0
- data/lib/awspec/type/dynamodb_table.rb +40 -0
- data/lib/awspec/type/ebs.rb +37 -0
- data/lib/awspec/type/ec2.rb +154 -0
- data/lib/awspec/type/ec2_account_attributes.rb +7 -0
- data/lib/awspec/type/ecr_repository.rb +18 -0
- data/lib/awspec/type/ecs_cluster.rb +46 -0
- data/lib/awspec/type/ecs_container_instance.rb +30 -0
- data/lib/awspec/type/ecs_service.rb +29 -0
- data/lib/awspec/type/ecs_task_definition.rb +24 -0
- data/lib/awspec/type/efs.rb +22 -0
- data/lib/awspec/type/eip.rb +16 -0
- data/lib/awspec/type/eks.rb +24 -0
- data/lib/awspec/type/elasticache.rb +68 -0
- data/lib/awspec/type/elasticache_cache_parameter_group.rb +42 -0
- data/lib/awspec/type/elasticsearch.rb +23 -0
- data/lib/awspec/type/elastictranscoder_pipeline.rb +21 -0
- data/lib/awspec/type/elb.rb +94 -0
- data/lib/awspec/type/emr.rb +40 -0
- data/lib/awspec/type/firehose.rb +30 -0
- data/lib/awspec/type/iam_group.rb +48 -0
- data/lib/awspec/type/iam_policy.rb +60 -0
- data/lib/awspec/type/iam_role.rb +38 -0
- data/lib/awspec/type/iam_user.rb +38 -0
- data/lib/awspec/type/internet_gateway.rb +20 -0
- data/lib/awspec/type/kinesis.rb +73 -0
- data/lib/awspec/type/kms.rb +21 -0
- data/lib/awspec/type/lambda.rb +23 -0
- data/lib/awspec/type/lambda_account_settings.rb +7 -0
- data/lib/awspec/type/launch_configuration.rb +28 -0
- data/lib/awspec/type/launch_template.rb +34 -0
- data/lib/awspec/type/mq.rb +57 -0
- data/lib/awspec/type/nat_gateway.rb +29 -0
- data/lib/awspec/type/network_acl.rb +117 -0
- data/lib/awspec/type/network_interface.rb +56 -0
- data/lib/awspec/type/nlb.rb +35 -0
- data/lib/awspec/type/nlb_listener.rb +43 -0
- data/lib/awspec/type/nlb_target_group.rb +22 -0
- data/lib/awspec/type/rds.rb +109 -0
- data/lib/awspec/type/rds_account_attributes.rb +7 -0
- data/lib/awspec/type/rds_db_cluster_parameter_group.rb +21 -0
- data/lib/awspec/type/rds_db_parameter_group.rb +21 -0
- data/lib/awspec/type/redshift.rb +88 -0
- data/lib/awspec/type/redshift_cluster_parameter_group.rb +20 -0
- data/lib/awspec/type/resource_base.rb +24 -0
- data/lib/awspec/type/route53_hosted_zone.rb +65 -0
- data/lib/awspec/type/route_table.rb +84 -0
- data/lib/awspec/type/s3_bucket.rb +139 -0
- data/lib/awspec/type/secretsmanager.rb +14 -0
- data/lib/awspec/type/security_group.rb +148 -0
- data/lib/awspec/type/ses_identity.rb +70 -0
- data/lib/awspec/type/ses_send_quota.rb +7 -0
- data/lib/awspec/type/sns_topic.rb +50 -0
- data/lib/awspec/type/sqs.rb +37 -0
- data/lib/awspec/type/ssm_parameter.rb +26 -0
- data/lib/awspec/type/subnet.rb +39 -0
- data/lib/awspec/type/vpc.rb +66 -0
- data/lib/awspec/type/vpn_connection.rb +40 -0
- data/lib/awspec/type/vpn_gateway.rb +40 -0
- data/lib/awspec/type/waf_web_acl.rb +24 -0
- data/lib/awspec/type/wafregional_web_acl.rb +24 -0
- data/lib/awspec/version.rb +3 -0
- metadata +727 -0
@@ -0,0 +1,23 @@
|
|
1
|
+
### exist
|
2
|
+
|
3
|
+
```ruby
|
4
|
+
describe ecs_cluster('my-ecs-cluster') do
|
5
|
+
it { should exist }
|
6
|
+
end
|
7
|
+
```
|
8
|
+
|
9
|
+
### be_active, be_inactive
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
describe ecs_cluster('my-ecs-cluster') do
|
13
|
+
it { should be_active }
|
14
|
+
end
|
15
|
+
```
|
16
|
+
|
17
|
+
### have_container_instance
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
describe ecs_cluster('my-ecs-cluster') do
|
21
|
+
it { have_container_instance('f2756532-8f13-4d53-87c9-aed50dc94cd7') }
|
22
|
+
end
|
23
|
+
```
|
@@ -0,0 +1,18 @@
|
|
1
|
+
### exist
|
2
|
+
|
3
|
+
You can set `cluster` ( default: `default` ).
|
4
|
+
|
5
|
+
```ruby
|
6
|
+
describe ecs_container_instance('my-container-instance'), cluster: 'my-ecs-cluster' do
|
7
|
+
it { should exist }
|
8
|
+
end
|
9
|
+
```
|
10
|
+
|
11
|
+
### be_active, be_inactive
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
describe ecs_container_instance('my-container-instance'), cluster: 'my-ecs-cluster' do
|
15
|
+
it { should be_active }
|
16
|
+
end
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
### exist
|
2
|
+
|
3
|
+
```ruby
|
4
|
+
describe ecs_task_definition('my-ecs-task-definition') do
|
5
|
+
it { should exist }
|
6
|
+
end
|
7
|
+
```
|
8
|
+
|
9
|
+
### be_active, be_inactive
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
describe ecs_task_definition('my-ecs-task-definition') do
|
13
|
+
it { should be_active }
|
14
|
+
end
|
15
|
+
```
|
@@ -0,0 +1,23 @@
|
|
1
|
+
### exist
|
2
|
+
|
3
|
+
```ruby
|
4
|
+
describe eip('123.0.456.789') do
|
5
|
+
it { should exist }
|
6
|
+
end
|
7
|
+
```
|
8
|
+
|
9
|
+
### be_associated_to
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
describe eip('123.0.456.789') do
|
13
|
+
it { should be_associated_to('i-ec12345a') }
|
14
|
+
end
|
15
|
+
```
|
16
|
+
|
17
|
+
### belong_to_domain
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
describe eip('123.0.456.789') do
|
21
|
+
it { should belong_to_domain('vpc') }
|
22
|
+
end
|
23
|
+
```
|
@@ -0,0 +1,57 @@
|
|
1
|
+
### exist
|
2
|
+
|
3
|
+
```ruby
|
4
|
+
describe elasticache('my-rep-group-001') do
|
5
|
+
it { should exist }
|
6
|
+
end
|
7
|
+
```
|
8
|
+
|
9
|
+
### be_available, be_creating, be_deleted, be_deleting, be_incompatible_network, be_modifying, be_rebooting_cache_cluster_nodes, be_restore_failed, be_snapshotting
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
describe elasticache('my-rep-group-001') do
|
13
|
+
it { should be_available }
|
14
|
+
end
|
15
|
+
```
|
16
|
+
|
17
|
+
### have_cache_parameter_group
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
describe elasticache('my-rep-group-001') do
|
21
|
+
it { should have_cache_parameter_group('my-cache-parameter-group') }
|
22
|
+
end
|
23
|
+
```
|
24
|
+
|
25
|
+
### have_security_group
|
26
|
+
|
27
|
+
```ruby
|
28
|
+
describe elasticache('my-rep-group-001') do
|
29
|
+
it { should have_security_group('sg-da1bc2ef') }
|
30
|
+
it { should have_security_group('group-name-sg') }
|
31
|
+
it { should have_security_group('my-cache-sg') }
|
32
|
+
end
|
33
|
+
```
|
34
|
+
|
35
|
+
### belong_to_cache_subnet_group
|
36
|
+
|
37
|
+
```ruby
|
38
|
+
describe elasticache('my-rep-group-001') do
|
39
|
+
it { should belong_to_cache_subnet_group('my-cache-subnet-group') }
|
40
|
+
end
|
41
|
+
```
|
42
|
+
|
43
|
+
### belong_to_replication_group
|
44
|
+
|
45
|
+
```ruby
|
46
|
+
describe elasticache('my-rep-group-001') do
|
47
|
+
it { should belong_to_replication_group('my-rep-group') }
|
48
|
+
end
|
49
|
+
```
|
50
|
+
|
51
|
+
### belong_to_vpc
|
52
|
+
|
53
|
+
```ruby
|
54
|
+
describe elasticache('my-rep-group-001') do
|
55
|
+
it { should belong_to_vpc('my-vpc') }
|
56
|
+
end
|
57
|
+
```
|
@@ -0,0 +1,17 @@
|
|
1
|
+
### first
|
2
|
+
|
3
|
+
```ruby
|
4
|
+
describe elasticache_cache_parameter_group('my-cache-parameter-group') do
|
5
|
+
it { should exist }
|
6
|
+
its(:activerehashing) { should eq 'yes' }
|
7
|
+
its(:client_output_buffer_limit_pubsub_hard_limit) { should eq '33554432' }
|
8
|
+
end
|
9
|
+
```
|
10
|
+
|
11
|
+
### exist
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
describe elasticache_cache_parameter_group('my-cache-parameter-group') do
|
15
|
+
it { should exist }
|
16
|
+
end
|
17
|
+
```
|
@@ -0,0 +1,48 @@
|
|
1
|
+
### exist
|
2
|
+
|
3
|
+
```ruby
|
4
|
+
describe elasticsearch('my-elasticsearch') do
|
5
|
+
it { should exist }
|
6
|
+
end
|
7
|
+
```
|
8
|
+
|
9
|
+
### be_created
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
describe elasticsearch('my-elasticsearch') do
|
13
|
+
it { should be_created }
|
14
|
+
end
|
15
|
+
```
|
16
|
+
|
17
|
+
### be_deleted
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
describe elasticsearch('my-elasticsearch') do
|
21
|
+
it { should be_deleted }
|
22
|
+
end
|
23
|
+
```
|
24
|
+
|
25
|
+
### have_access_policies
|
26
|
+
|
27
|
+
```ruby
|
28
|
+
describe elasticsearch('my-elasticsearch') do
|
29
|
+
it do
|
30
|
+
should have_access_policies <<-policy
|
31
|
+
{
|
32
|
+
"version": "2012-10-17",
|
33
|
+
"statement": [
|
34
|
+
{
|
35
|
+
"effect": "allow",
|
36
|
+
"principal": "*",
|
37
|
+
"action": [
|
38
|
+
"es:*"
|
39
|
+
],
|
40
|
+
"resource": "arn:aws:es:ap-northeast-1:1234567890:domain/my-elasticsearch/*"
|
41
|
+
}
|
42
|
+
]
|
43
|
+
}
|
44
|
+
policy
|
45
|
+
end
|
46
|
+
end
|
47
|
+
```
|
48
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# exist
|
2
|
+
|
3
|
+
```ruby
|
4
|
+
describe elastictranscoder_pipeline('my-elastictranscoder-pipeline') do
|
5
|
+
it { should exist }
|
6
|
+
end
|
7
|
+
```
|
8
|
+
|
9
|
+
### be_active, be_paused
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
describe elastictranscoder_pipeline('my-elastictranscoder-pipeline') do
|
13
|
+
it { should be_active }
|
14
|
+
end
|
15
|
+
```
|
@@ -0,0 +1,82 @@
|
|
1
|
+
### exist
|
2
|
+
|
3
|
+
```ruby
|
4
|
+
describe elb('my-elb') do
|
5
|
+
it { should exist }
|
6
|
+
end
|
7
|
+
```
|
8
|
+
|
9
|
+
### have_ec2
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
describe elb('my-elb') do
|
13
|
+
it { should have_ec2('my-ec2') }
|
14
|
+
end
|
15
|
+
```
|
16
|
+
|
17
|
+
### have_listener
|
18
|
+
|
19
|
+
http://docs.aws.amazon.com/en_us/ElasticLoadBalancing/latest/DeveloperGuide/elb-listener-config.html
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
describe elb('my-elb') do
|
23
|
+
it { should have_listener(protocol: 'HTTPS', port: 443, instance_protocol: 'HTTP', instance_port: 80) }
|
24
|
+
end
|
25
|
+
```
|
26
|
+
|
27
|
+
### have_security_group
|
28
|
+
|
29
|
+
```ruby
|
30
|
+
describe elb('my-elb') do
|
31
|
+
it { should have_security_group('my-lb-security-group-tag-name') }
|
32
|
+
end
|
33
|
+
```
|
34
|
+
|
35
|
+
### have_subnet
|
36
|
+
|
37
|
+
```ruby
|
38
|
+
describe elb('my-elb') do
|
39
|
+
it { should have_subnet('my-subnet') }
|
40
|
+
end
|
41
|
+
```
|
42
|
+
|
43
|
+
### belong_to_vpc
|
44
|
+
|
45
|
+
```ruby
|
46
|
+
describe elb('my-elb') do
|
47
|
+
it { should belong_to_vpc('my-vpc') }
|
48
|
+
end
|
49
|
+
```
|
50
|
+
|
51
|
+
### have_tag
|
52
|
+
|
53
|
+
```ruby
|
54
|
+
describe elb('my-elb') do
|
55
|
+
it { should have_tag('Name').value('my-elb') }
|
56
|
+
it { should have_tag('my-tag-key').value('my-tag-value') }
|
57
|
+
end
|
58
|
+
```
|
59
|
+
|
60
|
+
### be_cross_zone_load_balancing_enabled
|
61
|
+
|
62
|
+
```ruby
|
63
|
+
describe elb('my-elb') do
|
64
|
+
it { should be_cross_zone_load_balancing_enabled }
|
65
|
+
end
|
66
|
+
```
|
67
|
+
|
68
|
+
### have_access_log
|
69
|
+
|
70
|
+
```ruby
|
71
|
+
describe elb('my-elb') do
|
72
|
+
it { should have_access_log(s3_bucket_name: 'my-loadbalancer-logs', s3_bucket_prefix: 'my-app', emit_interval: 5) }
|
73
|
+
end
|
74
|
+
```
|
75
|
+
|
76
|
+
### have_connection_draining
|
77
|
+
|
78
|
+
```ruby
|
79
|
+
describe elb('my-elb') do
|
80
|
+
it { should have_connection_draining(timeout: 300) }
|
81
|
+
end
|
82
|
+
```
|
@@ -0,0 +1,21 @@
|
|
1
|
+
### exist
|
2
|
+
|
3
|
+
```ruby
|
4
|
+
describe emr('my-emr') do
|
5
|
+
it { should exist }
|
6
|
+
end
|
7
|
+
```
|
8
|
+
### be_healthy
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
describe emr('my-emr') do
|
12
|
+
it { should be_healthy }
|
13
|
+
end
|
14
|
+
```
|
15
|
+
### be_running, be_waiting, be_starting, be_bootstrapping
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
describe emr('my-emr') do
|
19
|
+
it { should be_running }
|
20
|
+
end
|
21
|
+
```
|
@@ -0,0 +1,31 @@
|
|
1
|
+
### exist
|
2
|
+
|
3
|
+
```ruby
|
4
|
+
describe firehose('my-firehose') do
|
5
|
+
it { should exist }
|
6
|
+
end
|
7
|
+
```
|
8
|
+
|
9
|
+
### be_active
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
describe firehose('my-firehose') do
|
13
|
+
it { should be_active }
|
14
|
+
end
|
15
|
+
```
|
16
|
+
|
17
|
+
### have_splunk_destination
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
describe firehose('my-firehose') do
|
21
|
+
it { should have_splunk_destination }
|
22
|
+
end
|
23
|
+
```
|
24
|
+
|
25
|
+
### advanced
|
26
|
+
|
27
|
+
```ruby
|
28
|
+
describe firehose('my-firehose') do
|
29
|
+
its(:delivery_stream_type) { should be_eql('DirectPut') }
|
30
|
+
end
|
31
|
+
```
|
@@ -0,0 +1,94 @@
|
|
1
|
+
### exist
|
2
|
+
|
3
|
+
```ruby
|
4
|
+
describe iam_group('my-iam-group') do
|
5
|
+
it { should exist }
|
6
|
+
end
|
7
|
+
```
|
8
|
+
|
9
|
+
### be_allowed_action
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
describe iam_group('my-iam-group') do
|
13
|
+
it { should be_allowed_action('ec2:DescribeInstances') }
|
14
|
+
it { should be_allowed_action('s3:Put*').resource_arn('arn:aws:s3:::my-bucket-name/*') }
|
15
|
+
end
|
16
|
+
```
|
17
|
+
|
18
|
+
### have_iam_policy
|
19
|
+
|
20
|
+
```ruby
|
21
|
+
describe iam_group('my-iam-group') do
|
22
|
+
it { should have_iam_policy('ReadOnlyAccess') }
|
23
|
+
end
|
24
|
+
```
|
25
|
+
|
26
|
+
### have_iam_user
|
27
|
+
|
28
|
+
```ruby
|
29
|
+
describe iam_group('my-iam-group') do
|
30
|
+
it { should have_iam_user('my-iam-user') }
|
31
|
+
end
|
32
|
+
```
|
33
|
+
|
34
|
+
### have_inline_policy
|
35
|
+
|
36
|
+
```ruby
|
37
|
+
describe iam_group('my-iam-group') do
|
38
|
+
it { should have_inline_policy('InlineEC2FullAccess') }
|
39
|
+
it do
|
40
|
+
should have_inline_policy('InlineEC2FullAccess').policy_document(<<-'DOC')
|
41
|
+
{
|
42
|
+
"Statement": [
|
43
|
+
{
|
44
|
+
"Action": "ec2:*",
|
45
|
+
"Effect": "Allow",
|
46
|
+
"Resource": "*"
|
47
|
+
},
|
48
|
+
{
|
49
|
+
"Effect": "Allow",
|
50
|
+
"Action": "elasticloadbalancing:*",
|
51
|
+
"Resource": "*"
|
52
|
+
},
|
53
|
+
{
|
54
|
+
"Effect": "Allow",
|
55
|
+
"Action": "cloudwatch:*",
|
56
|
+
"Resource": "*"
|
57
|
+
},
|
58
|
+
{
|
59
|
+
"Effect": "Allow",
|
60
|
+
"Action": "autoscaling:*",
|
61
|
+
"Resource": "*"
|
62
|
+
}
|
63
|
+
]
|
64
|
+
}
|
65
|
+
DOC
|
66
|
+
end
|
67
|
+
end
|
68
|
+
```
|
69
|
+
|
70
|
+
You can test absence of inline policies.
|
71
|
+
|
72
|
+
```ruby
|
73
|
+
describe iam_group('my-iam-group') do
|
74
|
+
it { should_not have_inline_policy }
|
75
|
+
end
|
76
|
+
```
|
77
|
+
|
78
|
+
### advanced
|
79
|
+
|
80
|
+
`iam_group` can use `Aws::IAM::Group` resource (see http://docs.aws.amazon.com/sdkforruby/api/Aws/IAM/Group.html).
|
81
|
+
|
82
|
+
```ruby
|
83
|
+
describe iam_group('my-iam-group') do
|
84
|
+
its('users.count') { should eq 5 }
|
85
|
+
end
|
86
|
+
```
|
87
|
+
|
88
|
+
or
|
89
|
+
|
90
|
+
```ruby
|
91
|
+
describe iam_group('my-iam-group') do
|
92
|
+
its('resource.users.count') { should eq 5 }
|
93
|
+
end
|
94
|
+
```
|