2017-11-25 48 views
0

CloudFormation設定ファイルvpc.ymlfront.ymlを追加し、いくつかの値をvpc.ymlにエクスポートしてインポートしました。 次のコマンドを実行しましたが、動作しません。CloudFormationスタックを検証または作成する方法

$ aws cloudformation validate-template --template-body file://front.yml 
An error occurred (ValidationError) when calling the ValidateTemplate operation: Template format error: Unresolved resource dependencies [VPCGatewayAttach] in the Resources block of the template 

他の値をインポートするスタックに対して有効なコマンドは何ですか?

+0

「cft」を投稿して、あなたが欠けているものをより良く知るようにしてください。 – Asdfg

答えて

0

VPCGatewayAttachに依存関係を指定するリソースのうちdependsOn属性があり、VPCGatewayAttachがcftに存在しないため、エラーが発生しています。

+0

ああ、 'dependsOn'属性なしでうまく動作します! 'Fn :: ImportValue'などを使って' dependsOn'として他のスタックリソースを指定できますか? –

+0

いいえできません。 – Asdfg

+0

ええ、大丈夫です。ありがとう! –

関連する問題