aws / aws-tools-for-powershell

The AWS Tools for PowerShell lets developers and administrators manage their AWS services from the PowerShell scripting environment.
Apache License 2.0
243 stars 80 forks source link

Create temporary credentials for Region eu-west-1 with get-stssessiontoken: unauthorized #253

Closed tabbedy closed 2 years ago

tabbedy commented 2 years ago

Hi all, i Tried to generate temporary credentials with get-stssessiontoken dir Region eu-west-1. The Generation was successful, but sellingpartner API result ist unauthorized. I Tried to generate stssessiontoken with the Same AWS credentials via sts endpoint for Region eu-west-1 and Used them in my code. After this my api requests was successful.

I also Tried to Set the endpoint via die Endpointuri Parameter to HTTPS://sts.eu-west-1.amazonaws.com. the authorization was Not successful.

Can anybody Help, please?

ashishdhingra commented 2 years ago

Hi @tabbedy,

Good morning.

Could you please elaborate on more details along with sample code in the below template:

Expected Behavior

Current Behavior

Possible Solution

Steps to Reproduce (for bugs)

Context

Your Environment

.NET Core Info

Also, could you please check if the AWS credentials used to access Selling Partner API has appropriate IAM permissions, refer https://github.com/amzn/selling-partner-api-docs/blob/main/guides/en-US/developer-guide/SellingPartnerApiDeveloperGuide.md#step-4-create-an-iam-role/?

Thanks, Ashish

github-actions[bot] commented 2 years ago

This issue has not received a response in 5 days. If you want to keep this issue open, please just leave a comment below and auto-close will be canceled.