Sha256: 2776b7905452e18856b5495790e0e1a069d41fe149a405d71240b97adc95a2b7

Contents?: true

Size: 357 Bytes

Versions: 5

Compression:

Stored size: 357 Bytes

Contents

require 'aws-sdk'

module Ufo
  module AwsServices
    def ecs
      @ecs ||= Aws::ECS::Client.new(region: region)
    end

    def elb
      @elb ||= Aws::ElasticLoadBalancingV2::Client.new(region: region)
    end

    def ecr
      @ecr ||= Aws::ECR::Client.new(region: region)
    end

    def region
      ENV['REGION'] || 'us-east-1'
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ufo-0.1.3 lib/ufo/aws_services.rb
ufo-0.1.2 lib/ufo/aws_services.rb
ufo-0.1.1 lib/ufo/aws_services.rb
ufo-0.1.0 lib/ufo/aws_services.rb
ufo-0.0.6 lib/ufo/aws_services.rb