8

Containerize with AWS – Building Solutions with AWS EKS

In the previous chapter, we built and automated our solution on AWS while utilizing Elastic Cloud Compute (EC2). We built VM images with Packer and provisioned our VMs using Terraform. In this chapter, we’ll follow a similar path, but instead of working with VMs, we’ll look at hosting our application in containers within a Kubernetes cluster.

To achieve this, we’ll need to alter our approach by ditching Packer and replacing it with Docker to create a deployable artifact for our application. Once again, we will be using the aws provider for Terraform, but this time, we’ll be introducing something new: the kubernetes provider for Terraform, which will provision to the Kubernetes cluster ...

Get Mastering Terraform 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.