Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix aws sdk dependencies #335

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins/community/blob/master/HOW_WE_CHANGELOG.md)

## [Unreleased]
### Breaking Changes
Pulling only needed service gems from aws (@rajiv)

## [18.0.0] - 2019-04-2
### Breaking Changes
Expand Down
2 changes: 1 addition & 1 deletion bin/check-alb-target-group-health.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
# Released under the same terms as Sensu (the MIT license); see LICENSE
# for details.

require 'aws-sdk'
require 'aws-sdk-elasticloadbalancingv2'
require 'sensu-plugin/check/cli'
require 'sensu-plugins-aws'

Expand Down
2 changes: 1 addition & 1 deletion bin/check-asg-instances-created.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#

require 'sensu-plugin/check/cli'
require 'aws-sdk'
require 'aws-sdk-autoscaling'
require 'sensu-plugins-aws'

class CheckAsgInstanceCreated < Sensu::Plugin::Check::CLI
Expand Down
2 changes: 1 addition & 1 deletion bin/check-asg-instances-inservice.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

require 'sensu-plugins-aws'
require 'sensu-plugin/check/cli'
require 'aws-sdk'
require 'aws-sdk-autoscaling'

class CheckAsgInstancesInService < Sensu::Plugin::Check::CLI
include Common
Expand Down
3 changes: 2 additions & 1 deletion bin/check-autoscaling-cpucredits.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
#

require 'sensu-plugin/check/cli'
require 'aws-sdk'
require 'aws-sdk-autoscaling'
require 'aws-sdk-cloudwatch'

class CheckEc2CpuCredits < Sensu::Plugin::Check::CLI
option :aws_access_key,
Expand Down
3 changes: 2 additions & 1 deletion bin/check-beanstalk-elb-metric.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@

require 'sensu-plugins-aws/cloudwatch-common'
require 'sensu-plugin/check/cli'
require 'aws-sdk'
require 'aws-sdk-elasticbeanstalk'
require 'aws-sdk-cloudwatch'

class BeanstalkELBCheck < Sensu::Plugin::Check::CLI
option :environment,
Expand Down
2 changes: 1 addition & 1 deletion bin/check-beanstalk-health.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#

require 'sensu-plugin/check/cli'
require 'aws-sdk'
require 'aws-sdk-elasticbeanstalk'
require 'json'

class BeanstalkHealth < Sensu::Plugin::Check::CLI
Expand Down
2 changes: 1 addition & 1 deletion bin/check-certificate-expiry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#

require 'sensu-plugin/check/cli'
require 'aws-sdk'
require 'aws-sdk-iam'

class CheckCertificateExpiry < Sensu::Plugin::Check::CLI
option :aws_access_key,
Expand Down
2 changes: 1 addition & 1 deletion bin/check-cloudfront-tag.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

require 'sensu-plugin/check/cli'
require 'sensu-plugins-aws/common'
require 'aws-sdk'
require 'aws-sdk-cloudfront'

class CheckCloudFrontTag < Sensu::Plugin::Check::CLI
include Common
Expand Down
2 changes: 1 addition & 1 deletion bin/check-cloudwatch-alarm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#

require 'sensu-plugin/check/cli'
require 'aws-sdk'
require 'aws-sdk-cloudwatch'

class CloudWatchCheck < Sensu::Plugin::Check::CLI
option :aws_access_key,
Expand Down
2 changes: 1 addition & 1 deletion bin/check-cloudwatch-alarms.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

require 'sensu-plugin/check/cli'
require 'sensu-plugins-aws/common'
require 'aws-sdk'
require 'aws-sdk-cloudwatch'

class CloudWatchCheck < Sensu::Plugin::Check::CLI
include Common
Expand Down
2 changes: 1 addition & 1 deletion bin/check-cloudwatch-composite-metric.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

require 'sensu-plugins-aws'
require 'sensu-plugin/check/cli'
require 'aws-sdk'
require 'aws-sdk-cloudwatch'

class CloudWatchCompositeMetricCheck < Sensu::Plugin::Check::CLI
option :aws_region,
Expand Down
2 changes: 1 addition & 1 deletion bin/check-cloudwatch-metric.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

require 'sensu-plugins-aws'
require 'sensu-plugin/check/cli'
require 'aws-sdk'
require 'aws-sdk-cloudwatch'

class CloudWatchMetricCheck < Sensu::Plugin::Check::CLI
option :aws_region,
Expand Down
2 changes: 1 addition & 1 deletion bin/check-configservice-rules.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

require 'sensu-plugin/check/cli'
require 'sensu-plugins-aws'
require 'aws-sdk'
require 'aws-sdk-configservice'

class CheckConfigServiceRules < Sensu::Plugin::Check::CLI
include Common
Expand Down
2 changes: 1 addition & 1 deletion bin/check-direct-connect-virtual-interfaces.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

require 'sensu-plugin/check/cli'
require 'sensu-plugins-aws'
require 'aws-sdk'
require 'aws-sdk-directconnect'

class CheckDcVirtualInterfacesHealth < Sensu::Plugin::Check::CLI
include Common
Expand Down
3 changes: 2 additions & 1 deletion bin/check-dynamodb-capacity.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
#

require 'sensu-plugin/check/cli'
require 'aws-sdk'
require 'aws-sdk-dynamodb'
require 'aws-sdk-cloudwatch'
require 'time'

class CheckDynamoDB < Sensu::Plugin::Check::CLI
Expand Down
3 changes: 2 additions & 1 deletion bin/check-dynamodb-throttle.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
#

require 'sensu-plugin/check/cli'
require 'aws-sdk'
require 'aws-sdk-dynamodb'
require 'aws-sdk-cloudwatch'
require 'time'

class CheckDynamoDB < Sensu::Plugin::Check::CLI
Expand Down
3 changes: 2 additions & 1 deletion bin/check-ebs-burst-limit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@

require 'sensu-plugin/check/cli'
require 'sensu-plugins-aws'
require 'aws-sdk'
require 'aws-sdk-ec2'
require 'aws-sdk-cloudwatch'
require 'net/http'

class CheckEbsBurstLimit < Sensu::Plugin::Check::CLI
Expand Down
2 changes: 1 addition & 1 deletion bin/check-ebs-snapshots.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

require 'sensu-plugin/check/cli'
require 'sensu-plugins-aws'
require 'aws-sdk'
require 'aws-sdk-elasticloadbalancing'

class CheckEbsSnapshots < Sensu::Plugin::Check::CLI
include Common
Expand Down
3 changes: 2 additions & 1 deletion bin/check-ec2-cpu_balance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@

require 'sensu-plugins-aws'
require 'sensu-plugin/check/cli'
require 'aws-sdk'
require 'aws-sdk-ec2'
require 'aws-sdk-cloudwatch'

class EC2CpuBalance < Sensu::Plugin::Check::CLI
include Common
Expand Down
2 changes: 1 addition & 1 deletion bin/check-ec2-filter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#

require 'sensu-plugin/check/cli'
require 'aws-sdk'
require 'aws-sdk-ec2'
require 'sensu-plugins-aws/filter'

class EC2Filter < Sensu::Plugin::Check::CLI
Expand Down
3 changes: 2 additions & 1 deletion bin/check-ec2-network.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
#

require 'sensu-plugin/check/cli'
require 'aws-sdk'
require 'aws-sdk-ec2'
require 'aws-sdk-cloudwatch'

class CheckEc2Network < Sensu::Plugin::Check::CLI
option :aws_access_key,
Expand Down
2 changes: 1 addition & 1 deletion bin/check-ecs-service-health.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

require 'sensu-plugin/check/cli'
require 'sensu-plugins-aws'
require 'aws-sdk'
require 'aws-sdk-ecs'

class CheckEcsServiceHealth < Sensu::Plugin::Check::CLI
include Common
Expand Down
3 changes: 2 additions & 1 deletion bin/check-efs-metric.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@

require 'sensu-plugins-aws'
require 'sensu-plugin/check/cli'
require 'aws-sdk'
require 'aws-sdk-efs'
require 'aws-sdk-cloudwatch'

# A Sensu plugin which uses cloudwatch-common to check EFS CloudWatch metrics
class EFSMetric < Sensu::Plugin::Check::CLI
Expand Down
2 changes: 1 addition & 1 deletion bin/check-eip-allocation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

require 'sensu-plugin/check/cli'
require 'sensu-plugins-aws'
require 'aws-sdk'
require 'aws-sdk-ec2'

class CheckEipAllocation < Sensu::Plugin::Check::CLI
include Common
Expand Down
2 changes: 1 addition & 1 deletion bin/check-elasticache-failover.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#

require 'sensu-plugin/check/cli'
require 'aws-sdk'
require 'aws-sdk-elasticache'
require 'sensu-plugins-aws/common'

class CheckElastiCacheFailover < Sensu::Plugin::Check::CLI
Expand Down
2 changes: 1 addition & 1 deletion bin/check-elb-certs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

require 'sensu-plugin/check/cli'
require 'sensu-plugins-aws'
require 'aws-sdk'
require 'aws-sdk-elasticloadbalancing'
require 'net/http'
require 'openssl'

Expand Down
3 changes: 2 additions & 1 deletion bin/check-elb-health-sdk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@

require 'sensu-plugin/check/cli'
require 'sensu-plugins-aws'
require 'aws-sdk'
require 'aws-sdk-elasticloadbalancing'
require 'aws-sdk-ec2'

class ELBHealth < Sensu::Plugin::Check::CLI
include Common
Expand Down
2 changes: 1 addition & 1 deletion bin/check-elb-instances-inservice.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#

require 'sensu-plugin/check/cli'
require 'aws-sdk'
require 'aws-sdk-elasticloadbalancing'
require 'sensu-plugins-aws'

class CheckElbInstanceInService < Sensu::Plugin::Check::CLI
Expand Down
3 changes: 2 additions & 1 deletion bin/check-elb-latency.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@

require 'sensu-plugin/check/cli'
require 'sensu-plugins-aws'
require 'aws-sdk'
require 'aws-sdk-elasticloadbalancing'
require 'cloudwatch'

class CheckELBLatency < Sensu::Plugin::Check::CLI
include Common
Expand Down
2 changes: 1 addition & 1 deletion bin/check-elb-nodes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

require 'sensu-plugin/check/cli'
require 'sensu-plugins-aws'
require 'aws-sdk'
require 'aws-sdk-elasticloadbalancing'

class CheckELBNodes < Sensu::Plugin::Check::CLI
include Common
Expand Down
3 changes: 2 additions & 1 deletion bin/check-elb-sum-requests.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@

require 'sensu-plugin/check/cli'
require 'sensu-plugins-aws'
require 'aws-sdk'
require 'aws-sdk-elasticloadbalancing'
require 'aws-sdk-cloudwatch'

class CheckELBSumRequests < Sensu::Plugin::Check::CLI
include Common
Expand Down
2 changes: 1 addition & 1 deletion bin/check-emr-cluster.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#

require 'sensu-plugin/check/cli'
require 'aws-sdk'
require 'aws-sdk-emr'

class CheckEMRCluster < Sensu::Plugin::Check::CLI
option :aws_access_key,
Expand Down
2 changes: 1 addition & 1 deletion bin/check-emr-steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

require 'sensu-plugins-aws'
require 'sensu-plugin/check/cli'
require 'aws-sdk'
require 'aws-sdk-emr'

class CheckEMRSteps < Sensu::Plugin::Check::CLI
include Common
Expand Down
2 changes: 1 addition & 1 deletion bin/check-eni-status.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

require 'sensu-plugin/check/cli'
require 'sensu-plugins-aws'
require 'aws-sdk'
require 'aws-sdk-ec2'

#
# Check ENI Status
Expand Down
2 changes: 1 addition & 1 deletion bin/check-instance-events.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#

require 'sensu-plugin/check/cli'
require 'aws-sdk'
require 'aws-sdk-ec2'

class CheckInstanceEvents < Sensu::Plugin::Check::CLI
option :aws_access_key,
Expand Down
2 changes: 1 addition & 1 deletion bin/check-instance-health.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

require 'sensu-plugins-aws'
require 'sensu-plugin/check/cli'
require 'aws-sdk'
require 'aws-sdk-ec2'

class CheckInstanceEvents < Sensu::Plugin::Check::CLI
include Common
Expand Down
2 changes: 1 addition & 1 deletion bin/check-instance-reachability.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#

require 'sensu-plugin/check/cli'
require 'aws-sdk'
require 'aws-sdk-ec2'
require 'sensu-plugins-aws'

class CheckInstanceReachability < Sensu::Plugin::Check::CLI
Expand Down
2 changes: 1 addition & 1 deletion bin/check-instances-count.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

require 'sensu-plugins-aws'
require 'sensu-plugin/check/cli'
require 'aws-sdk'
require 'aws-sdk-autoscaling'

# Class to check the instance count
class CheckInstanceCount < Sensu::Plugin::Check::CLI
Expand Down
2 changes: 1 addition & 1 deletion bin/check-kms-key.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

require 'sensu-plugin/check/cli'
require 'sensu-plugins-aws'
require 'aws-sdk'
require 'aws-sdk-kms'

class CheckKMSKey < Sensu::Plugin::Check::CLI
include Common
Expand Down
2 changes: 1 addition & 1 deletion bin/check-rds-events.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
#

require 'sensu-plugin/check/cli'
require 'aws-sdk'
require 'aws-sdk-rds'

class CheckRDSEvents < Sensu::Plugin::Check::CLI
option :aws_access_key,
Expand Down
2 changes: 1 addition & 1 deletion bin/check-rds-pending.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

require 'sensu-plugin/check/cli'
require 'sensu-plugins-aws'
require 'aws-sdk'
require 'aws-sdk-rds'

class CheckRDSPending < Sensu::Plugin::Check::CLI
include Common
Expand Down
4 changes: 3 additions & 1 deletion bin/check-rds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@
#

require 'sensu-plugin/check/cli'
require 'aws-sdk'
require 'aws-sdk-rds'
require 'aws-sdk-cloudwatch'

require 'time'

class CheckRDS < Sensu::Plugin::Check::CLI
Expand Down
Loading