BeerMoneyDev / nest-aws-sdk

A thin wrapping layer around the aws-sdk package for clean NestJS dependency injection.
MIT License
93 stars 13 forks source link

How to load AWS credential from container #19

Closed JardarTemalogic closed 3 weeks ago

JardarTemalogic commented 1 year ago

I am using nestjs inside and AWS container, run by Fargate. I want to have the AWS credentials set from how the IAM Role is assigne to the task, as according to this article: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-iam-roles.html

How would I do this?

KerryRitter commented 3 weeks ago

Sorry, I'm not totally sure what your setup is. If the IAM role is setup on the aws context correctly, it will use it (i.e. lambda) - not sure if that's the same for fargate. We're a thin wrapper to the sdk so it should be fine