contents

 

foreword

preface

acknowledgments

about this book

about the author

about the cover illustration

Part 1 Terraform bootcamp

1 Getting started with Terraform

1.1 What makes Terraform so great?

Provisioning tool

Easy to use

Free and open source software

Declarative programming

Cloud-agnostic

Richly expressive and highly extensible

1.2 “Hello Terraform!”

Writing the Terraform configuration

Configuring the AWS provider

Initializing Terraform

Deploying the EC2 instance

Destroying the EC2 instance

1.3 Brave new “Hello Terraform!”

Modifying the Terraform configuration

Applying changes

Destroying the infrastructure

1.4 Fireside chat

2 Life cycle of a Terraform resource

2.1 Process overview

Life cycle function hooks

2.2 Declaring a local file resource