diff --git a/lib/dockly.rb b/lib/dockly.rb index 329fef0..00c5b81 100644 --- a/lib/dockly.rb +++ b/lib/dockly.rb @@ -63,8 +63,10 @@ def perform_role_assumption return if assume_role.nil? Aws.config.update( credentials: Aws::AssumeRoleCredentials.new( - role_arn: assume_role, role_session_name: 'dockly' - ) + role_arn: assume_role, role_session_name: 'dockly', + client: Aws::STS::Client.new(region: aws_region) + ), + region: aws_region ) end