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

Returns a new instance of Container.



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

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

Instance Method Details

#cloudformationObject



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

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

#ec2Object



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

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

#elasticacheObject



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

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

#elasticsearchObject



57
58
59
# File 'lib/aws_client.rb', line 57

def elasticsearch
  @elasticsearch ||= ::AwsClient::ElasticSearchWrapper.new(client: client_connect(::Aws::ElasticsearchService::Client))
end

#elbObject



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

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

#rdsObject



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

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

#s3Object



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

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

#s32Object



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

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