is the process of managing and provisioning computinginfrastructure(process es, bare-metal servers, virtual servers, etc.) and their configuration through machine- processable definitionfiles, rather than physical hardware configuration or the use of interactive configuration tools. (Wikipedia, 2016) Infrastructure as Code
creation and management of AWS resources • Allows for the deployment of AWS resources • Can be updated while infrastructure is running • Enables CICD (blue/green stack) AWS CloudFormation
to be in valid JSON • Use an IDE or JSON validator • Highest Level is an Object (JSON Object) • Objects are Associative Arrays (Think Key Value Pairs) • Require • AWSTemplateFormatVersion • Description CloudFormation Top Level Structure
during boot • Used for bootstrapping • Found on instance in /var/lib/cloud/instance/scripts/pa rt-001 • Only run on first boot of instance • Be careful can easily be overused • Don’t use hardcoded secrets Userdata