Class: AwsClient::Container

Inherits:
Object
  • Object
show all
Defined in:
lib/aws_client.rb

Instance Method Summary collapse

Constructor Details

#initialize(credentials_key, aws_region, provisioning_region) ⇒ Container



21
22
23
24
25
26
# File 'lib/aws_client.rb', line 21

def initialize(credentials_key, aws_region, provisioning_region)
   = credentials_key
  @aws_region = aws_region
  @provisioning_region = provisioning_region
  validate
end

Instance Method Details

#cloudformationObject



32
33
34
# File 'lib/aws_client.rb', line 32

def cloudformation
  @cloudformation ||= ::AwsClient::CfWrapper.new(client: client_connect(::Aws::CloudFormation::Client))
end

#ec2Object



44
45
46
# File 'lib/aws_client.rb', line 44

def ec2
  @ec2 ||= ::AwsClient::Ec2Wrapper.new(client: client_connect(::Aws::EC2::Client))
end

#elasticacheObject



52
53
54
# File 'lib/aws_client.rb', line 52

def elasticache
  @elasticache ||= ::AwsClient::ElastiCacheWrapper.new(client: client_connect(::Aws::ElastiCache::Client))
end

#elbObject



48
49
50
# File 'lib/aws_client.rb', line 48

def elb
  @elb ||= ::AwsClient::ElbWrapper.new(client: client_connect(::Aws::ElasticLoadBalancing::Client))
end

#rdsObject



28
29
30
# File 'lib/aws_client.rb', line 28

def rds
  @rds ||= ::AwsClient::RdsWrapper.new(client: client_connect(::Aws::RDS::Client))
end

#s3Object



40
41
42
# File 'lib/aws_client.rb', line 40

def s3
  @s3 ||= ::AwsClient::S3Wrapper.new(client: client_connect(::Aws::S3::Client), credentials_key: , region: @aws_region)
end

#s32Object



36
37
38
# File 'lib/aws_client.rb', line 36

def s32
  @s32 ||= ::AwsClient::S32Wrapper.new(client: client_connect(::Aws::S3::Client), credentials_key: , region: @aws_region)
end