AWS Secret Value - C# .NET Framework 4.8 - Unable to get IAM security credentials from EC2 Instance Metadata Service

0

Hello, I'm trying to retrieve AWS Secret Value inside my .NET C# (.NET Framework 4.8) Application hosted on IIS in a EC2 instance like in the example showed here: https://docs.aws.amazon.com/secretsmanager/latest/userguide/retrieving-secrets_cache-net.html

The exception I receive is the following: Exception Details: Amazon.Runtime.AmazonServiceException: Unable to get IAM security credentials from EC2 Instance Metadata Service.

If I try to execute the command from CLI, the secret's are retrieved successfully.

Can someone help please ?

질문됨 2년 전8928회 조회
1개 답변
0

The following GitHub and Stack Overflow sites describe similar errors and may be helpful. [1] [2]

[1] How to troubleshoot "Unable to get IAM security credentials from EC2 Instance Metadata Service."? · Issue #1699 · aws/aws-sdk-net
https://github.com/aws/aws-sdk-net/issues/1699

[2] .net - AWS DotNet SDK Error: Unable to get IAM security credentials from EC2 Instance Metadata Service - Stack Overflow
https://stackoverflow.com/questions/60815037/aws-dotnet-sdk-error-unable-to-get-iam-security-credentials-from-ec2-instance-m

profile picture
mn87
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠