0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Serverlessでまず最初にほぼ確実にやること

Last updated at Posted at 2019-11-04

deployしてあれ?できてないってなることがあるので書いておきます
(この記事は5秒で読めます)
Serverlessのawsのデフォルトの設定ではデプロイ先のリージョンが us-east-1 バージニア北部になっています

CloudFormationのサービス画面で、ああーバージニアかあとリージョン変更したらやっぱりか!ってなる
なりません?

# serverless.yml
# 略
provider
  name: aws
  runtime: nodejs10.x
  region: ap-northeast-1 # これを追加

deploy時に指定する方法もあります
以下のように --regionでリージョン指定します
$ sls deploy --region ap-northeast-1

ymlに書かないと削除するときも --region指定しないとダメです
面倒なのでやっぱりymlに書きましょう

何回かバージニア北部にデプロイして音速で $ sls remove しているので、もう書いておきます

ちなみにCloudFormationのスタックを削除するのと $ sls remove は同じです

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?