Hi There
I have been struggling with this now for a couple of days. I am trying to use the serverless framework on ecscontainer that has several roles configured. aws cli commands work well for any profile I like to select. However whenever i try to run sls deploy --aws-profile playground
simple lambda function, I keep getting:
Serverless: Creating Stack...
Error --------------------------------------------------
Profile playground does not exist
For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.
Stack Trace --------------------------------------------
Error: Profile playground does not exist
at Object.addProfileCredentials (/usr/lib/node_modules/serverless/lib/plugins/aws/provider/awsProvider.js:86:15)
at AwsProvider.getCredentials (/usr/lib/node_modules/serverless/lib/plugins/aws/provider/awsProvider.js:310:12)
at AwsProvider.request (/usr/lib/node_modules/serverless/lib/plugins/aws/provider/awsProvider.js:197:30)
at createDeployment.then (/usr/lib/node_modules/serverless/lib/plugins/aws/deploy/lib/createStack.js:39:61)
My current config looks like:
[playground]
role_arn=somerolearn
credential_source=EcsContainer
[dev]
role_arn=somerolearn
credential_source=EcsContainer
[test]
role_arn=somerolearn
credential_source=EcsContainer
[qa]
role_arn=arn:somerolearn
credential_source=EcsContainer