Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to get IAM security credentials from EC2 Instance Metadata Service #66

Open
dat0609 opened this issue May 17, 2022 · 1 comment

Comments

@dat0609
Copy link

dat0609 commented May 17, 2022

How can use AWS secret when I deploy into production. I'm using .net6 and used docker to deploy into azure but in production, I got the error "Unable to get IAM security credentials from EC2 Instance Metadata Service"
I'm adding credentials for AWS secret manager. It works when I change the environment variable to production but does not work when I deployed

I have tried 6 samples but nothing works for me

When I use Basic credentials I got

Amazon.Runtime.AmazonServiceException: Unable to get IAM security credentials from EC2 Instance Metadata Service.

I also add IAM full access to that user role

When I use StoredProfileAWSCredentials I got

App.config does not contain credentials information. Either add the AWSAccessKey and AWSSecretKey properties or the AWSProfileName property.

@Kralizek
Copy link
Owner

Hi! Since you're running your container in Azure, I guess you'll need to use a fully flashed out user to authorize your calls towards AWS.

I'd consider putting the keys into whatever secure storage Azure offers and use them as environment variables in the container.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants