You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hence reproducing the exact same arguments in a YAML file (git-sync-prerequisites-stack.yaml) would from my understanding be with the following content:
But when using this YAML file with --cli-input-yaml, it fails:
❯ aws cloudformation create-stack --cli-input-yaml file://git-sync-prerequisites-stack.yamlAn error occurred (ValidationError) when calling the CreateStack operation: Template format error: unsupported structure.
I have tried to compare the --debug logs of each commands but I was unable to spot the issue (apart that the content of the git-sync/prerequisites.yaml file is not displayed in the logs for the --cli-input-yaml command).
Any idea on how to debug this or make this work is welcome.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I am trying to wrap up arguments for the command
aws cloudformation create-stack
in a YAML file to be then passed with--cli-input-yaml
.My current working command line is:
aws cloudformation create-stack --stack-name CfnGitSyncPrerequisites --template-body file://git-sync/prerequisites.yaml --capabilities CAPABILITY_NAMED_IAM
Hence reproducing the exact same arguments in a YAML file (
git-sync-prerequisites-stack.yaml
) would from my understanding be with the following content:But when using this YAML file with
--cli-input-yaml
, it fails:I have tried to compare the
--debug
logs of each commands but I was unable to spot the issue (apart that the content of thegit-sync/prerequisites.yaml
file is not displayed in the logs for the--cli-input-yaml
command).Any idea on how to debug this or make this work is welcome.
Beta Was this translation helpful? Give feedback.
All reactions