LoginSignup
2
2

More than 5 years have passed since last update.

Serverlessでデプロイするアカウントのプロファイルを変更する

Last updated at Posted at 2017-04-14

Serverless側で何も設定していない状態では、[default]のプロファイルが選択されるようです。プロファイルを指定してデプロイする方法を説明します。

serverless.xmlの編集

provider.profileに使用するプロファイル名を指定します。

serverless.yml
provider:
  name: aws
  runtime: nodejs6.10

# you can overwrite defaults here
  stage: dev
  region: ap-northeast-1
  profile: vsv1 # 追記 !!

参考

※AWS CLIで複数プロファイルを管理する方法は、以下の記事が参考になります。
http://qiita.com/ryuzee/items/e3ce493f132f1981f57a

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2