Sha256: 12ea67e52d0e99c8298df045035ff18c94a27d441006bf15491104a676daf723

Contents?: true

Size: 482 Bytes

Versions: 1

Compression:

Stored size: 482 Bytes

Contents

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

module TerraspacePluginAws
  module Clients
    extend Memoist

    def s3
      Aws::S3::Client.new
    end
    memoize :s3

    def secretsmanager
      Aws::SecretsManager::Client.new
    end
    memoize :secretsmanager

    def ssm
      Aws::SSM::Client.new
    end
    memoize :ssm

    def dynamodb
      Aws::DynamoDB::Client.new
    end
    memoize :dynamodb
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
terraspace_plugin_aws-0.3.0 lib/terraspace_plugin_aws/clients.rb