sous-chefs / aws

Development repository for the aws cookbook
https://supermarket.chef.io/cookbooks/aws
Apache License 2.0
610 stars 554 forks source link

Assume Role Bug #447

Open iamsheny opened 3 years ago

iamsheny commented 3 years ago

:speaking_head: Foreword

Thank for taking the time to fill this bug report fully. Without it we may not be able to fix the bug, and the issue may be closed without resolution.

:ghost: Brief Description

When I use sts = ::Aws::AssumeRoleCredentials.new, I can't get sts.access_key_id

:pancakes: Cookbook version

unknown

:woman_cook: Chef-Infra Version

17.6.18

:tophat: Platform details

windows2019

Steps To Reproduce

Steps to reproduce the behavior:

When I use "sts = ::Aws::AssumeRoleCredentials.new"

I can get std.access_key_id

Error msg: FATAL: NoMethodError: undefined method `access_key_id' for #<Aws::AssumeRoleCredentials:0x00000000074ddc10 @assume_role_params={:role_arn=>"arn:aws:iam::2589xxxxx343:role/delegate-chef-node", :role_session_name=>"b3f5386ea34d6626"}, @client=#, @mutex=#, @credentials=#, @expiration=2021-11-18 11:13:15 UTC>