Chapter 2. Setting Up Your Environment

Now that you’re excited and engaged, you’re ready to experiment and create something in your AWS account. We’ll use free, publicly accessible sample code to demonstrate how you can create or destroy objects or resources with the “magic” of automation.

In this chapter, we’ll show you how to set up your local environment with some simple commands. As we discussed in Chapter 1, AWS will be the cloud provider of choice for our Automatoonz adventure in this book.

When you are finished running through the chapter, you will have a fully automated Amazon Elastic Kubernetes Service (EKS) cluster and an AWS Lambda container image pipeline on which to deploy a simple Python application.

Tip

Remember to set up and test your account credentials, and test your access. Also, don’t forget to destroy the sample resources you created in your account to avoid inadvertent billing.

What You’ll Need

Here is a list of tools you’ll need to follow along with the exercises and activities in this book:

AWS CLI
An open source tool that enables you to interact with AWS services in the assigned account by using commands in your terminal. For more information, visit the official site. Please use the latest version.
AWS CloudFormation
A service that helps you provision and configure your AWS resources based on a template file written in JSON or YAML. The files are used to deploy and provision infrastructure resources tracked as code. For more information, visit the

Get Security as Code 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.