devops-basics

Build an Ubuntu machine image on AWS with Packer

Prerequisites

Init

packer init .

Build

packer build aws-ubuntu.pkr.hcl

# ...
# ==> Wait completed after 5 minutes 15 seconds
# ==> Builds finished. The artifacts of successful builds are:
# --> learn-packer.amazon-ebs.ubuntu: AMIs were created:
# us-west-2: ami-xxxxyyyyzzzztttt

Verify

Cleanup