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 1 year has passed since last update.

eb deploy 時に `Service:AmazonCloudFormation, Message:Template error` が発生

Posted at

概要

デプロイ時にこんなエラーが出る。

2022-02-02 10:57:08    ERROR   Service:AmazonCloudFormation, Message:Template error: every Fn::Join object requires two parameters, (1) a string delimiter and (2) a list of strings to be joined or a function that returns a list of strings (such as Fn::GetAZs) to be joined.

原因

自分の場合、ebextensions の commands に以下コメントを入れてしまっていたからだった。

#!/bin/bash
  :
# convert `{"hoge": "fuga"}` => `export hoge='fuga'`

バッククオートが無意味に展開されてしまい、CloudFormation の意図しないエラーが発生したのだと考えられる。

対策

カッコつけないで、バッククオートをとる。

# convert {"hoge": "fuga"} => export hoge='fuga'

備考

Elastic Beanstalk というよりは Bash 的な話。初心を忘れてはいけない。

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?