Book Image

Infrastructure as Code (IAC) Cookbook

By : Stephane Jourdan, Pierre Pomès
Book Image

Infrastructure as Code (IAC) Cookbook

By: Stephane Jourdan, Pierre Pomès

Overview of this book

Para 1: Infrastructure as code is transforming the way we solve infrastructural challenges. This book will show you how to make managing servers in the cloud faster, easier and more effective than ever before. With over 90 practical recipes for success, make the very most out of IAC.
Table of Contents (18 chapters)
Infrastructure as Code (IAC) Cookbook
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface
Index

Chapter 2. Provisioning IaaS with Terraform

In this chapter, we will cover the following recipes:

  • Configuring the Terraform AWS provider

  • Creating and using an SSH key pair to use on AWS

  • Using AWS security groups with Terraform

  • Creating an Ubuntu EC2 instance with Terraform

  • Generating meaningful outputs with Terraform

  • Using contextual defaults with Terraform

  • Managing S3 storage with Terraform

  • Creating private Docker repositories with Terraform

  • Creating a PostgreSQL RDS database with Terraform

  • Enabling CloudWatch Logs for Docker with Terraform

  • Managing IAM users with Terraform