LoginSignup
22
7

More than 5 years have passed since last update.

Serverlessのデプロイ時に"The specified bucket does not exist"って言われた時の対処

Posted at

こういう人向けの内容

  • 綺麗好き
  • Serverless Frameworkを使ってデプロイしている
  • DynamoDBの設定をserverless.ymlに書いている
  • デプロイ時に The specified bucket does not exist というエラーが出た

結論

S3のバケットを手動で削除したりすると出る。もう一度同じ名前でバケットを作り直せばOK。

手順

  1. AWSのコンソールでCloudFormationを開く
  2. Serverlessが生成したスタックを選択
  3. リソース タブの ServerlessDeploymentBucket という項目に書かれたバケット名をメモ
  4. S3でその名前でバケットを新規作成

経緯

  • serverless公式GitHubのIsuuesには「CloudFormationで該当スタックを削除すればいいよ」って書いてある
  • でも削除するとDynamoDBまわりがいろいろ面倒なことになるから消したくない
  • S3のバケットだけ再生成すればいけるんジャマイカ
  • いけた
22
7
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
22
7