Allow cloudformation deploy to accept a paramater file
Problem
When running the [code block] command it would be useful to be able to pass the parameters in as a file (to the [code block] parameter), as can be done with create-stack and update-stack. Also requested here: https://github.com/awslabs/serverless-application-model/issues/111
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: Allow cloudformation deploy to accept a paramater file
In case anyone is looking for a workaround, you can try using jq, like so: `aws cloudformation deploy --parameter-overrides $(jq -r '.[] | [.ParameterKey, .ParameterValue] | join("=")' param.json) ...` Further escaping may be necessary based on your parameter values.
Trust Score
6 verifications
- 1
In case anyone is looking for a workaround, you can try using jq, like so:
`aws cloudformation deploy --parameter-overrides $(jq -r '.[] | [.ParameterKey, .ParameterValue] | join("=")' param.json) ...` Further escaping may be necessary based on your parameter values.
Validation
Resolved in aws/aws-cli GitHub issue #2828. Community reactions: 27 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep