AWS Bites

121. 5 Ways to extend CloudFormation

Apr 18, 2024
Explore how to extend CloudFormation beyond its native capabilities. Discover the benefits of tools like Serverless Framework, SAM, and CDK that streamline functionality and reduce maintenance headaches. Learn the ins and outs of custom scripts and CloudFormation macros for improved automation. Dive into the intricacies of creating custom resources through Lambda and SNS while avoiding common pitfalls. The discussion offers valuable recommendations tailored for complex infrastructure needs.
Ask episode
AI Snips
Chapters
Transcript
Episode notes
INSIGHT

CloudFormation Overview and Extension Needs

  • CloudFormation defines infrastructure stacks with YAML or JSON templates, managing resources throughout their lifecycle.
  • Extending CloudFormation becomes necessary when built-in capabilities are insufficient for complex needs.
ADVICE

Avoid Custom Scripts if Possible

  • Avoid custom scripts and templating engines for new projects unless working with legacy systems.
  • Use higher-level tools like CDK, SAM, or Serverless Framework.
INSIGHT

CloudFormation Generators

  • Serverless Framework, SAM, and CDK are CloudFormation generators, offering abstractions and simplifying infrastructure definitions.
  • CDK uses programming languages while Serverless Framework and SAM use YAML, each with its pros and cons.
Get the Snipd Podcast app to discover more snips from this episode
Get the app