This website collects cookies to deliver better user experience
Packer Series - Blog #1 Creating our first AWS AMI with Hashicorp Packer
Packer Series - Blog #1 Creating our first AWS AMI with Hashicorp Packer
Let us first understand, what is Packer?
Packer is an open source tools used for creating identical machine images for multiple platforms for a single source configuration.
There are three major components of Packer -
Builders
Provisioners
Post-Processors
*** For this blog we are just going to use the Builder element,and subsequently we will look into Provisioners and Post-Processors in the upcoming blogs in the Packer Series ***
Let's get started
Basic pre-requisites for creating an AWS AMI with Packer would be -
Having an AWS account
Installing AWS CLI
Creating an IAM User with EC2 Full Access Policy
Running aws configure on base os terminal and providing the created IAM user creds and region
Now, we need to choose an IDE of our choice( I have used VS Code for this task), create a packer directory/folder in your system and within it code an example.json file.