ServerlessFrameworkでデプロイ時にこのようなエラーが起きました
> AWS_PROFILE=profile-name npx sls deploy
Serverless: Packaging service...
Serverless: Excluding development dependencies...
Serverless: Creating Stack...
Error --------------------------------------------------
Profile profile-name does not exist
For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Forums: forum.serverless.com
Chat: gitter.im/serverless/serverless
Your Environment Information -----------------------------
OS: darwin
Node Version: 8.9.1
Serverless Version: 1.25.0
~/.aws/configに↓のようにAssumeRoleで設定していたのですが読み取ってくれないようなので
[profile profile-name]
source_profile = default
role_arn = arn:aws:iam::123456777654:role/DeveloperRole
region = ap-northeast-1
~/.aws/credentialsに指定したら解決しました
[profile-name]
source_profile = default
role_arn = arn:aws:iam::123456777654:role/DeveloperRole
region = ap-northeast-1