Module: Moonshot::CredsHelper

Overview

Create convenience methods for various AWS client creation.

Instance Method Summary collapse

Instance Method Details

#as_client(**args) ⇒ Object



22
23
24
# File 'lib/moonshot/creds_helper.rb', line 22

def as_client(**args)
  Aws::AutoScaling::Client.new(args)
end

#cd_client(**args) ⇒ Object



10
11
12
# File 'lib/moonshot/creds_helper.rb', line 10

def cd_client(**args)
  Aws::CodeDeploy::Client.new(args)
end

#cf_client(**args) ⇒ Object



6
7
8
# File 'lib/moonshot/creds_helper.rb', line 6

def cf_client(**args)
  Aws::CloudFormation::Client.new(args)
end

#ec2_client(**args) ⇒ Object



14
15
16
# File 'lib/moonshot/creds_helper.rb', line 14

def ec2_client(**args)
  Aws::EC2::Client.new(args)
end

#iam_client(**args) ⇒ Object



18
19
20
# File 'lib/moonshot/creds_helper.rb', line 18

def iam_client(**args)
  Aws::IAM::Client.new(args)
end

#s3_client(**args) ⇒ Object



26
27
28
# File 'lib/moonshot/creds_helper.rb', line 26

def s3_client(**args)
  Aws::S3::Client.new(args)
end