I started the Amplify project using
amplify init
I created an environment and name it as env
and chose AWS profile default
.
It seems like env
is pointing to the default
profile.
Is there any way for me to make env
pointing to different AWS profile?
For example, if I have two profiles:
Can I make env
pointing to personal
AWS profile?
Thanks!
I know this question is a couple of years old, but I had a similar issue and came across it.
The relevant configuration is in <your-project>/amplify/.config/local-aws-info.json
, which will look something like this:
// <your-project>/amplify/.config/local-aws-info.json
{
"develop": {
"configLevel": "project",
"useProfile": true,
"profileName": "SomeNamedProfile"
},
"main": {
"configLevel": "project",
"useProfile": true,
"profileName": "SomeOtherNamedProfile"
}
}
Changing the value of profileName
to specify a different AWS CLI profile worked without any issues.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With