Chapter 4. Programming your infrastructure: The command-line, SDKs, and CloudFormation

This chapter covers

  • Understanding the idea of infrastructure as code
  • Using the CLI to start a virtual machine
  • Using the JavaScript SDK for Node.js to start a virtual machine
  • Using CloudFormation to start a virtual machine

Imagine that you want to provide room lighting as a service. To switch off the lights in a room using software, you need a hardware device like a relay connected to the light circuit. This hardware device must have some kind of interface that lets you send commands via software. With a relay and an interface, you can offer room lighting as a service.

This also applies to providing VMs as a service. VMs are software, but if you want to ...

Get Amazon Web Services in Action, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.