Cloud Formation — Helper Scripts

  • cfn-init : will look at metadata and install/configure dependencies (yum, files, etc)
  • cfn-signal : gives signal to the “waiting” cf template ( to proceed .. etc)
  • cfn-get-metadata : to retrieve metadata
  • cfn-hup : detect changes in metadata and action on changes
  1. CFN-INIT
  • EXECUTION IN THIS ORDER
  • packages : install list of package
  • groups : user group
  • user : user
  • source : download external file from somewhere else (zip archive in S3, github repository)
  • files : create files on instance OR pull from URL
    *** Sub! function → will substitute the variables dynamically
  • !!! No need to create parent directory before “files” part. “files” will automatically create the directory for you
  • commands : series of command
  • ** !Sub == Fn::Sub

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store