tools/riemann-aws/lib/riemann/tools/aws/rds_status.rb in riemann-tools-1.10.0 vs tools/riemann-aws/lib/riemann/tools/aws/rds_status.rb in riemann-tools-1.11.0
- old
+ new
@@ -15,9 +15,11 @@
opt :access_key, 'AWS access key', type: String
opt :secret_key, 'Secret access key', type: String
opt :region, 'AWS region', type: String, default: 'eu-west-1'
opt :dbinstance_identifier, 'DBInstanceIdentifier', type: String
def initialize
+ super
+
abort 'FATAL: specify a DB instance name, see --help for usage' unless opts[:dbinstance_identifier]
creds = if opts[:access_key] && opts[:secret_key]
{
aws_access_key_id: opts[:access_key],
aws_secret_access_key: opts[:secret_key],