Why do I get "Unable to get IAM security credentials from EC2 Instance Metadata Service" when using SSO? #292
-
I followed the instructions at Token provider configuration with automatic authentication refresh for AWS IAM Identity Center to configure I verified it works by running the command Now in Visual Studio I'm attempting to publish my .NET Web API as a Lambda in AWS. I used the command
Then I ran this as a test and got the same thing.
In
I tried running
I also have the AWS extension for Visual Studio which I am successfully logged into via SSO. I tried using that profile but I get the same error.
I've been on the first 20 or so Google results such as AWS DotNet SDK Error: Unable to get IAM security credentials from EC2 Instance Metadata Service but either they are about the AWS SDK (which is not what I'm doing) or they don't have any solutions that work for me. Any ideas what I'm doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
This looks to have been a known issue and was fixed recently, so this problem is now resolved. |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
This looks to have been a known issue and was fixed recently, so this problem is now resolved.