Multiple aws account credential #4461
Unanswered
prashantrbs
asked this question in
Q&A
Replies: 1 comment
-
Hi @prashantrbs, I am not sure if I understand the question correctly but this blog post mentions different ways you can manage your credentials. You can pass in different credential config when instantiating your service client. Which will look something like: const aws = require('aws-sdk');
const s3 = new aws.S3({prodConfig});
const s3dev = aws.S3({devConfig}) Please reach out if that doesnt help. Thanks |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi There,
I have aws sdk with node js.
Question: how to use multiple aws account credentials in one sdk
Details: i have 4 aws accounts for 4 different environments like QA, Demo. stage and dev. Right now if I want to use AWS service ofany environment I am pasting aws credential of that environment to .env file. This process i want to change by adding all 4 aws accounts to SDK and then call specific environments creds using some sort of command. i am not sure how i can do this programmatically can someone give me a blog link or any programmatic help?
Thanks,
Prashant
Beta Was this translation helpful? Give feedback.
All reactions