carlnordenfelt / aws-cloudformation-simple-cli Goto Github PK
View Code? Open in Web Editor NEWCommand line tool for installing, updating and deleting AWS projects created via Amazon CloudFormation
License: MIT License
Command line tool for installing, updating and deleting AWS projects created via Amazon CloudFormation
License: MIT License
I would love to have the ability to load placeholders from a file as opposed to having to pass them on the command line.
I find I like to use the same .config
file for multiple environments (e.g. dev, prod) and just make minor tweaks to some values (e.g. prepending stack names and tag names with the environment name, or changing the first two octets of VPC and subnet CIDRs which are passed as parameters, etc.). When you have multiple environments with multiple placeholders, this gets cumbersome.
An alternative is writing an all new .config
for each environment, but in complicated .config
files this makes things much less DRY. I often have very flexible CFN templates which use a lot of parameters. Those parameters don't change much between environments of the same project, (but may change a lot between projects) so it'd be nice to use the same .config
for each environment in a project, with an additional file (.placeholders
?) to hold small differences between environments.
A couple examples of how this could be implemented: adding a placeholder-file
option, or extending the existing placeholder
option to be similar to how the AWS CLI --parameters
flag works, where it can take a shorthand syntax or file://...
as a value.
Deploying two different environments for the same project may look like:
dev.placeholders
:
{
"{Namespace}": "Dev",
"{CidrPrefix}": "10.0"
}
prod.placeholders
:
{
"{Namespace}": "Prod",
"{CidrPrefix}": "10.1"
}
Shell commands to create stacks DevVpc
and ProdVpc
:
$ aws-cfn create --config-file project.config --environment vpc --placeholder-file dev.placeholders
$ aws-cfn create --config-file project.config --environment vpc --placeholder-file prod.placeholders
If you think this is an idea that you'd like to incorporate into the main project, I could take a first crack at implementing it and make a PR.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.