AWS CCP Notes

Search

Search IconIcon to open search

05-04 Infrastructure as Code (IaC)

Last updated Aug 17, 2023 Edit Source

You write a configuration script to automate creating, updating, or destroying cloud infrastructure.

AWS has two offerings for writing Infrastructure as Code.

# AWS CloudFormation (CFN)

#aws-service
75
CFN is a Declarative IaC tool

Declarative Definition

  • You say what you want, and the rest is filled in. Explicit
  • More verbose, but zero chance of misconfiguration
  • Uses scripting languages eg. JSON, YAML, XML

# AWS Cloud Development Kit (CDK)

#aws-service

CDK is an Imperative IaC tool.

Imperative Definition

  • What you see is what you get.  Implicit
  • Less verbose, you could end up with misconfiguration
  • Does more than Declarative
  • Uses programming languages eg. Python, Ruby, JavaScript