Preprocessor for CloudFormation templates with support for loops and flexible include statements
MIT License
Bot releases are hidden (Show)
Fn::Map
and Fn::Length
to obtain the length of a list (@arjanvandervelde)Fn::DeepMerge
(@nmccready)Published by monken about 4 years ago
Fn::Sequence
Published by monken almost 5 years ago
Breaking changes:
aws-sdk
is now a peer dependencyFeatures:
--bucket
parameter which allows you to validate templates > 50kHousekeeping:
Published by monken over 6 years ago
!GetCidr
to !Cidr
after AWS changed their mind on how to name that function 😞 (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-cidr.html)Published by monken over 6 years ago
--validate
Published by monken over 6 years ago
!GetCidr
intrinsic function to the schema (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-getcidr.html)Published by monken over 6 years ago
Breaking Changes:
Metadata
key in the output template. If you want to depend on this feature, pass the --metadata
flag. See #30.request
to load includes from HTTP and HTTPS endpoints. This has now been replaced with the node built-in http
and https
libraries.Features:
cat mytemplate.yml | cfn-include --validate --yaml
api
type now recognizes the AWS region provided by the AWS_REGION
and AWS_DEFAULT_REGION
environmental variables. If none are defined, it defaults to us-east-1
.Fn::Merge
will now merge it's output into its parent object instead of replacing itPublished by monken about 7 years ago
New Features:
Fn::Stringify
takes a data structure and converts it into a JSON stringBug Fixes:
Published by monken over 7 years ago
New Feature:
type: string
introduced (thanks to @rschick) which makes it easier to include files as strings for use with Fn::Sub
and without the infamous Fn::Join
syntax.Deprecated:
type: literal
is deprecated as Fn::Sub
made working with Refs so much easier. Check out type: string
, I've also updated the README to use type: string
everywhere.Fixed Bugs:
Published by monken over 7 years ago
cfn-include --version
now exits with an exit code of 0!GetAtt Role.Arn
which previously would have been written as !GetAtt [Role, Arn]
!Split
Published by monken almost 8 years ago
Features:
!Ref
are supported tooBug Fixes:
Fn::Include
calls failPublished by monken about 8 years ago
Allow YAML for input templates and output
Since JSON is YAML the YAML parser will happily accept JSON documents with YAML comments
Fn::Include
now supports AWS API calls, check out the examples
Published by monken over 8 years ago
Published by monken over 8 years ago
json
for Fn::Include
instead of undefinedFn::Map
to be interpreted, i.e. Fn::Include
will workPublished by monken over 8 years ago
Published by monken over 8 years ago
Published by monken over 8 years ago
Fn::Map
will now also replace variables in object keysFn::Merge
which allows for very interesting use cases (e.g. define multi-az resources only once)Published by monken over 8 years ago
New features:
Other:
npm link
(@hoegertn)Thanks @hoegertn for your support!
Published by monken over 8 years ago
Fn::Map
with support for nested mapsFn::Flatten
Published by monken over 8 years ago