Is it possible to define aws profile in sst.json ?
# help
d
Is it possible to define aws profile in sst.json ?
f
Hey @Damjan, it’s not.. but you can do. It uses the
default
profile in ur ~/.aws/credentials, and u can overwrite it like
Copy code
$ AWS_PROFILE=staging-profile sst deploy
Curious to hear what your use case is?
d
It's our AWS setup ... we have 5 accounts.
I figured out the AWS_PROFILE bit, but then it didn't work with the MFA 🙂
It asks for input but then can't submit the MFA code
f
oh hmm.. can you share a screenshot of which step it’s stuck on?
Got it. Let me give it a try in a bit.
I might need to rollout a fix for it.
d
No need to rush for my benefit .. I can manage 🙂
f
Sounds good. Let me know when this becomes urgent. I will bump it up my priority list.
p
Hi @Damjan, I use aws-vault for this which is working nicely, just calling it like so:
aws-vault exec test-env -- yarn sst start
d
🤯