mirror of
https://github.com/inspec/inspec
synced 2024-11-27 07:00:39 +00:00
b3fafab1e6
* add aws_eks_cluster Signed-off-by: Timothy van Zadelhoff timothy.inspec@theothersolution.nl * disable ABC check on fetch_from_api Signed-off-by: Timothy van Zadelhoff <timothy.inspec@theothersolution.nl> * add status predicates * Change docs for status attribute Signed-off-by: Timothy van Zadelhoff <timothy.inspec@theothersolution.nl> * Add integration tests Signed-off-by: Timothy van Zadelhoff <timothy.inspec@theothersolution.nl> * Adjust EKS build code to almost work Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com> * EKS only uses private subnets - integration tests pass Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com> * Correct AWS Exception class for resource search miss in unit test Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com> * Update unit test to reflect AWS resource-standard miss behavior, returning nil for most properties Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
57 lines
2.3 KiB
Ruby
57 lines
2.3 KiB
Ruby
# Main AWS loader file. The intent is for this to be
|
|
# loaded only if AWS resources are needed.
|
|
|
|
require 'aws-sdk' # TODO: split once ADK v3 is in use
|
|
|
|
require 'resource_support/aws/aws_backend_factory_mixin'
|
|
require 'resource_support/aws/aws_resource_mixin'
|
|
require 'resource_support/aws/aws_singular_resource_mixin'
|
|
require 'resource_support/aws/aws_plural_resource_mixin'
|
|
require 'resource_support/aws/aws_backend_base'
|
|
|
|
# Load all AWS resources
|
|
# TODO: loop over and load entire directory
|
|
# for f in ls lib/resources/aws/*; do t=$(echo $f | cut -c 5- | cut -f1 -d. ); echo "require '${t}'"; done
|
|
require 'resources/aws/aws_cloudtrail_trail'
|
|
require 'resources/aws/aws_cloudtrail_trails'
|
|
require 'resources/aws/aws_cloudwatch_alarm'
|
|
require 'resources/aws/aws_cloudwatch_log_metric_filter'
|
|
require 'resources/aws/aws_config_delivery_channel'
|
|
require 'resources/aws/aws_config_recorder'
|
|
require 'resources/aws/aws_ec2_instance'
|
|
require 'resources/aws/aws_ebs_volume'
|
|
require 'resources/aws/aws_ebs_volumes'
|
|
require 'resources/aws/aws_flow_log'
|
|
require 'resources/aws/aws_ec2_instances'
|
|
require 'resources/aws/aws_ecs_cluster'
|
|
require 'resources/aws/aws_eks_cluster'
|
|
require 'resources/aws/aws_elb'
|
|
require 'resources/aws/aws_elbs'
|
|
require 'resources/aws/aws_iam_access_key'
|
|
require 'resources/aws/aws_iam_access_keys'
|
|
require 'resources/aws/aws_iam_group'
|
|
require 'resources/aws/aws_iam_groups'
|
|
require 'resources/aws/aws_iam_password_policy'
|
|
require 'resources/aws/aws_iam_policies'
|
|
require 'resources/aws/aws_iam_policy'
|
|
require 'resources/aws/aws_iam_role'
|
|
require 'resources/aws/aws_iam_root_user'
|
|
require 'resources/aws/aws_iam_user'
|
|
require 'resources/aws/aws_iam_users'
|
|
require 'resources/aws/aws_kms_key'
|
|
require 'resources/aws/aws_kms_keys'
|
|
require 'resources/aws/aws_rds_instance'
|
|
require 'resources/aws/aws_route_table'
|
|
require 'resources/aws/aws_route_tables'
|
|
require 'resources/aws/aws_s3_bucket'
|
|
require 'resources/aws/aws_s3_bucket_object'
|
|
require 'resources/aws/aws_s3_buckets'
|
|
require 'resources/aws/aws_security_group'
|
|
require 'resources/aws/aws_security_groups'
|
|
require 'resources/aws/aws_sns_subscription'
|
|
require 'resources/aws/aws_sns_topic'
|
|
require 'resources/aws/aws_sns_topics'
|
|
require 'resources/aws/aws_subnet'
|
|
require 'resources/aws/aws_subnets'
|
|
require 'resources/aws/aws_vpc'
|
|
require 'resources/aws/aws_vpcs'
|