Class: Aerosol::Env

Inherits:
Object
  • Object
show all
Includes:
Dockly::Util::DSL
Defined in:
lib/aerosol/env.rb

Overview

An environment is a set of deploys.

Instance Method Summary collapse

Instance Method Details

#perform_role_assumptionObject



10
11
12
13
14
15
16
17
18
19
# File 'lib/aerosol/env.rb', line 10

def perform_role_assumption
  return if assume_role.nil?
  Aws.config.update(
    credentials: Aws::AssumeRoleCredentials.new(
      role_arn: assume_role,
      role_session_name: "aerosol-#{name}",
      client: Aerosol::AWS.sts
    )
  )
end