Sha256: a4b87d714a3e93d7c4bb8f6259f3360c8c72f454f4f731fe1fff2cb5c09b05b5

Contents?: true

Size: 645 Bytes

Versions: 3

Compression:

Stored size: 645 Bytes

Contents

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
meroku-2.0.3 lib/meroku/aws.rb
meroku-2.0.2 lib/meroku/aws.rb
meroku-2.0.1 lib/meroku/aws.rb