Open corey-cole opened 2 years ago
Sorry, wrong command in the repro. It's
aws cloudformation deploy --stack-name cp-format-validation --template-file mintemplate.yaml --parameter-overrides file://parameters.json
Expecting ',' delimiter: line 2 column 17 (char 18)
Hi @corey-cole, thanks for reaching out. It looks like you’re referring to this documentation page: https://awscli.amazonaws.com/v2/documentation/api/latest/reference/cloudformation/deploy/index.html
It does appear that the CodePipeline format at the bottom has invalid JSON as you mentioned. Have you tried using one of the alternative formats described above that?
@tim-finnigan Yes, I was able to use another format as-is.
Describe the bug
The documentation for the cloudformation deploy subcommand references invalid JSON when describing the CodePipeline style overrides. At present, the docs reference this JSON construct:
This is not valid JSON, as the root element is an array. The correct construct for this (validated with a minimal log group template) is:
Expected Behavior
I expected that following the provided documentation would result in a CloudFormation stack being deployed.
Current Behavior
Passing parameters as described in the docs results in an immediate error
Reproduction Steps
Template:
Parameters (per docs):
Results:
Possible Solution
No response
Additional Information/Context
No response
CLI version used
aws-cli/2.6.0 Python/3.9.12 Darwin/20.6.0 source/arm64 prompt/off
Environment details (OS name and version, etc.)
macOS 11.6.5