Hashicorp Packer Tutorial – Create AWS AMI Using Packer
This video demonstrates how to automate AWS AMI creation using hashicorp packer.
Learn Terraform in 10 minutes with this tutorial teaching the basics of Terraform. Terraform is a cloud infrastructure provisioning tool which can be used with many cloud providers such as AWS, GCP, Azure, CloudFlare etc.
We will be creating an EC2 instance from an AMI available on the AWS marketplace, and configuring the software on the instance using custom user data.
Steps to install terraform on windows:
Step 1: To install Terraform, find the appropriate package for your system and download it.
Step 2: Terraform is packaged as a zip archive, So, after downloading Terraform, unzip the package.
Step 3: Terraform runs as a single binary named terraform.
Step 4: The final step is to make sure that the terraform binary is available on the PATH.
Step 5: Finally verify the installation of terraform with following command.
The amazon-ebs Packer builder is able to create Amazon AMIs backed by EBS volumes for use in EC2. For more information on the difference between EBS-backed instances and instance-store backed instances, see the “storage for the root device” section in the EC2 documentation.
This builder builds an AMI by launching an EC2 instance from a source AMI, provisioning that running machine, and then creating an AMI from that machine. This is all done in your own AWS account. The builder will create temporary keypairs, security group rules, etc. that provide it temporary access to the instance while the image is being created. This simplifies configuration quite a bit.
Written by admin