module Meroku module Aws EC2_PARAMS = { image_id: 'ami-841f46ff', #was xenial 'ami-cd0f5cb6', min_count: 1, max_count: 1, key_name: 'meroku.id_rsa', instance_type: 't2.micro', tag_specifications: [ { resource_type: "instance", tags: [ { key: "Name", value: "node", }, ], }, ] } def credentials ::Aws::Credentials.new(ENV['AWS_ACCESS_KEY'], ENV['AWS_SECRET']) end def ec2_client ::Aws::EC2::Client.new(region: 'us-east-1', credentials: credentials) end end end