In this tutorial you will build a t2.micro Amazon EC2 AMI. You will complete your image by installing Redis on it. Although pre-installing Redis to your AMI is a small example, it should give you an idea of what Packer provisioners can do.
The following section contains a complete Packer template that can be used to build an AWS Ubuntu AMI in the us-west-2 region.
Create a file named aws-ubuntu.pkr.hcl and add the following code: