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 - Packer Tutorial
From the course: Learning HashiCorp Packer
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Select an AWS AMI base2m 31s
-
(Locked)
Automate AWS AMI base build3m 28s
-
(Locked)
Using build variables6m 55s
-
(Locked)
Provision Hello World1m 59s
-
(Locked)
Provision a basic site3m 40s
-
(Locked)
Challenge: Provision a MariaDB server40s
-
(Locked)
Solution: Provision a MariaDB server3m 45s
-
(Locked)
-
-
-
-