From the course: Learning HashiCorp Packer

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Select an AWS AMI base

Select an AWS AMI base - Packer Tutorial

From the course: Learning HashiCorp Packer

Start my 1-month free trial

Select an AWS AMI base

- [Instructor] Now that we've got an understanding of the Packer workflow, and explored some of the CLI commands, in this chapter we're going to build an image that serves a static website. One use case for this is in a fleet of auto-scaling cloud servers on a website that's rarely updated. Although in most cases S3 would be a better solution, we'll use this as an example, an exercise for learning Packer. To begin with, we need to specify a base image to build upon. The Packer workflow needs an existing image to customize. This will generally be a vendor-supplied image set up for the first run, as if it's just been installed. We can gather these from the Amazon marketplace. Now there are thousands of images on here, and they can be provided by anybody. They don't have to be coming from Canonical or Microsoft, so you've gotta be careful with the image you find. So we're gonna try and find an Ubuntu 16.04 image. The first thing we can do is make sure that we're only gathering images…

Contents