diff --git a/awspec.gemspec b/awspec.gemspec index 9786b0314..99a0a0374 100644 --- a/awspec.gemspec +++ b/awspec.gemspec @@ -4,6 +4,7 @@ lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'awspec/version' +# rubocop:disable Metrics/BlockLength Gem::Specification.new do |spec| spec.name = 'awspec' spec.version = Awspec::VERSION @@ -21,7 +22,45 @@ Gem::Specification.new do |spec| spec.require_paths = ['lib'] spec.required_ruby_version = '>= 2.1' - spec.add_runtime_dependency 'aws-sdk', '~> 3' + spec.add_runtime_dependency 'aws-sdk-acm' + spec.add_runtime_dependency 'aws-sdk-apigateway' + spec.add_runtime_dependency 'aws-sdk-autoscaling' + spec.add_runtime_dependency 'aws-sdk-batch' + spec.add_runtime_dependency 'aws-sdk-cloudformation' + spec.add_runtime_dependency 'aws-sdk-cloudfront' + spec.add_runtime_dependency 'aws-sdk-cloudtrail' + spec.add_runtime_dependency 'aws-sdk-cloudwatch' + spec.add_runtime_dependency 'aws-sdk-cloudwatchevents' + spec.add_runtime_dependency 'aws-sdk-cloudwatchlogs' + spec.add_runtime_dependency 'aws-sdk-codebuild' + spec.add_runtime_dependency 'aws-sdk-codedeploy' + spec.add_runtime_dependency 'aws-sdk-core', '~> 3' + spec.add_runtime_dependency 'aws-sdk-directconnect' + spec.add_runtime_dependency 'aws-sdk-dynamodb' + spec.add_runtime_dependency 'aws-sdk-ecr' + spec.add_runtime_dependency 'aws-sdk-ecs' + spec.add_runtime_dependency 'aws-sdk-efs' + spec.add_runtime_dependency 'aws-sdk-eks' + spec.add_runtime_dependency 'aws-sdk-elasticache' + spec.add_runtime_dependency 'aws-sdk-elasticloadbalancing' + spec.add_runtime_dependency 'aws-sdk-elasticsearchservice' + spec.add_runtime_dependency 'aws-sdk-elastictranscoder' + spec.add_runtime_dependency 'aws-sdk-emr' + spec.add_runtime_dependency 'aws-sdk-firehose' + spec.add_runtime_dependency 'aws-sdk-iam' + spec.add_runtime_dependency 'aws-sdk-kinesis' + spec.add_runtime_dependency 'aws-sdk-kms' + spec.add_runtime_dependency 'aws-sdk-lambda' + spec.add_runtime_dependency 'aws-sdk-mq' + spec.add_runtime_dependency 'aws-sdk-rds' + spec.add_runtime_dependency 'aws-sdk-redshift' + spec.add_runtime_dependency 'aws-sdk-secretsmanager' + spec.add_runtime_dependency 'aws-sdk-ses' + spec.add_runtime_dependency 'aws-sdk-sns' + spec.add_runtime_dependency 'aws-sdk-sqs' + spec.add_runtime_dependency 'aws-sdk-ssm' + spec.add_runtime_dependency 'aws-sdk-waf' + spec.add_runtime_dependency 'aws-sdk-wafregional' spec.add_runtime_dependency 'awsecrets', '~> 1' spec.add_runtime_dependency 'dry-inflector' spec.add_runtime_dependency 'ipaddress' diff --git a/lib/awspec/helper/finder.rb b/lib/awspec/helper/finder.rb index 155869179..131608272 100644 --- a/lib/awspec/helper/finder.rb +++ b/lib/awspec/helper/finder.rb @@ -1,4 +1,43 @@ -require 'aws-sdk' +require 'aws-sdk-acm' +require 'aws-sdk-apigateway' +require 'aws-sdk-autoscaling' +require 'aws-sdk-batch' +require 'aws-sdk-cloudformation' +require 'aws-sdk-cloudfront' +require 'aws-sdk-cloudtrail' +require 'aws-sdk-cloudwatch' +require 'aws-sdk-cloudwatchevents' +require 'aws-sdk-cloudwatchlogs' +require 'aws-sdk-codebuild' +require 'aws-sdk-codedeploy' +require 'aws-sdk-core' +require 'aws-sdk-directconnect' +require 'aws-sdk-dynamodb' +require 'aws-sdk-ecr' +require 'aws-sdk-ecs' +require 'aws-sdk-efs' +require 'aws-sdk-eks' +require 'aws-sdk-elasticache' +require 'aws-sdk-elasticloadbalancing' +require 'aws-sdk-elasticsearchservice' +require 'aws-sdk-elastictranscoder' +require 'aws-sdk-emr' +require 'aws-sdk-firehose' +require 'aws-sdk-iam' +require 'aws-sdk-kinesis' +require 'aws-sdk-kms' +require 'aws-sdk-lambda' +require 'aws-sdk-mq' +require 'aws-sdk-rds' +require 'aws-sdk-redshift' +require 'aws-sdk-secretsmanager' +require 'aws-sdk-ses' +require 'aws-sdk-sns' +require 'aws-sdk-sqs' +require 'aws-sdk-ssm' +require 'aws-sdk-waf' +require 'aws-sdk-wafregional' + require 'awspec/helper/finder/nlb' require 'awspec/helper/finder/alb' require 'awspec/helper/finder/vpc' diff --git a/lib/awspec/type/base.rb b/lib/awspec/type/base.rb index 45a68cb1e..702574da5 100644 --- a/lib/awspec/type/base.rb +++ b/lib/awspec/type/base.rb @@ -1,4 +1,3 @@ -require 'aws-sdk' require 'awspec/resource_reader' require 'awspec/helper/finder' require 'awspec/error'