1
1

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.

CloudFormation「1 validation error detected: Value '[AWS::EC2::VPC...]' at 'typeNameList' failed to satisfy constraint」

Last updated at Posted at 2022-03-23

はじめに

他人が書いたCloudFormationのyamlコードの動作確認をしたところ、以下のエラーが出力しました。

1 validation error detected: Value '[AWS::EC2::VPC, AWS::EC2::RouteTable,AWS::EC2:Route, ...<略>]' at 'typeNameList' failed to satisfy constraint: Member must satisfy constraint: [Member must have length less than or equal to 204, Member must have length greater than or equal to 10, Member must satisfy regular expression pattern: [A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}(::MODULE){0,1}]

これまた些細なことなのですが、10分以上解決に時間がかかりました。。。

原因

AWS::EC2:Routeになっていた。
正しくはAWS::EC2::Route

コメント

最近こんなのばかり。。。
CloudFormationは便利だけれど、エラーメッセージが雑?で辛いときがあります。
Value '[AWS::EC2::VPC, AWS::EC2::RouteTable,AWS::EC2:Route, ...<略>]'のエラーメッセージ、Value '[AWS::EC2:Route]のように問題の箇所だけ抜き出して表示できないのかなあ。サービスを大量に定義しているコードだったため、問題の箇所が埋もれてしまってどれも正しいように見えてました。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?