Method: Dockly.perform_role_assumption

Defined in:
lib/dockly.rb

.perform_role_assumptionObject



66
67
68
69
70
71
72
73
74
75
# File 'lib/dockly.rb', line 66

def perform_role_assumption
  return if assume_role.nil?
  Aws.config.update(
    credentials: Aws::AssumeRoleCredentials.new(
      role_arn: assume_role, role_session_name: 'dockly',
      client: Aws::STS::Client.new(region: aws_region)
    ),
    region: aws_region
  )
end