Sha256: 8bb4f7d8e16bd8823c3d71c4b72a4abc771c8acb2cf7a973f5953bbcf5cf04c8

Contents?: true

Size: 566 Bytes

Versions: 2

Compression:

Stored size: 566 Bytes

Contents

require "aws-sdk-dynamodb"
require "aws-sdk-s3"
require "aws-sdk-secretsmanager"
require "aws-sdk-ssm"

module TerraspacePluginAws
  module Clients
    extend Memoist
    include Options

    def s3
      Aws::S3::Client.new(client_options)
    end
    memoize :s3

    def secretsmanager
      Aws::SecretsManager::Client.new(client_options)
    end
    memoize :secretsmanager

    def ssm
      Aws::SSM::Client.new(client_options)
    end
    memoize :ssm

    def dynamodb
      Aws::DynamoDB::Client.new(client_options)
    end
    memoize :dynamodb
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
terraspace_plugin_aws-0.3.3 lib/terraspace_plugin_aws/clients.rb
terraspace_plugin_aws-0.3.2 lib/terraspace_plugin_aws/clients.rb