# # DESCRIPTION: # Common helper methods # # DEPENDENCIES: # gem: aws-sdk # gem: sensu-plugin # # USAGE: # # NOTES: # # LICENSE: # Shane Starcher # Released under the same terms as Sensu (the MIT license); see LICENSE # for details. # module Common def initialize super() aws_config end def aws_config Aws.config.update( credentials: Aws::Credentials.new(config[:aws_access_key], config[:aws_secret_access_key]) ) if config[:aws_access_key] && config[:aws_secret_access_key] Aws.config.update( region: config[:aws_region] ) end end