Comments (1)
Got that covered, I believe, with --accept-defaults
and --no-previous
. From one of the use-cases in the README.md:
Creating ECS service CloudFormation stack
Launching the CloudFormation stack for the first time. Accept some defaults from the template, specify all other parameters.
params="$(
cfparams --template=cfn.yaml --accept-defaults --no-previous \
Recipient=world ImageTag=v1 Cluster=nanoservices
)"
--template
loads supported Parameters from a CloudFormation template.--accept-defaults
omits keys that have a default in the CloudFormation template.--no-previous
means fail if a key has no default in the template and isn't specified on the command line. Without this option, those keys will be auto-filled as"UsePreviousValue": true
.
Resulting JSON:
[
{"ParameterKey": "Recipient", "ParameterValue": "world"},
{"ParameterKey": "ImageTag", "ParameterValue": "v1"},
{"ParameterKey": "Cluster", "ParameterValue": "nanoservices"}
]
aws cloudformation create-stack \
--stack-name=greeting \
--template-body=file://cfn.yaml \
--parameters="$params"
from cfparams.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cfparams.