Module: Moonshot::CredsHelper

Overview

Create convenience methods for various AWS client creation.

Instance Method Summary collapse

Instance Method Details

#as_clientObject



20
21
22
# File 'lib/moonshot/creds_helper.rb', line 20

def as_client
  Aws::AutoScaling::Client.new
end

#cd_clientObject



8
9
10
# File 'lib/moonshot/creds_helper.rb', line 8

def cd_client
  Aws::CodeDeploy::Client.new
end

#cf_clientObject



4
5
6
# File 'lib/moonshot/creds_helper.rb', line 4

def cf_client
  Aws::CloudFormation::Client.new
end

#ec2_clientObject



12
13
14
# File 'lib/moonshot/creds_helper.rb', line 12

def ec2_client
  Aws::EC2::Client.new
end

#iam_clientObject



16
17
18
# File 'lib/moonshot/creds_helper.rb', line 16

def iam_client
  Aws::IAM::Client.new
end

#s3_clientObject



24
25
26
# File 'lib/moonshot/creds_helper.rb', line 24

def s3_client
  Aws::S3::Client.new
end