---
type: video
yt_id: VVU2YVRMdUlfajQtMHdpRFN6bWFQY3RRLmRkZS1iV1VlUk1v
videoId: dde-bWUeRMo
title: "Intro to Packer with AWS"
date: "2021-10-26T02:01:44Z"
slug: "intro-to-packer-with-aws"
image: 
  name: "intro-to-packer-with-aws.jpg"
  alt: "Intro to Packer with AWS"
  width: 1280
  height: 720
status: 'published'
description: "Learn the basics of using packer to create AMIs in AWS by setting up an AMI that runs a basic node web application."
tags: ['aws', 'cloud computing', 'iac', 'infrastructure as code', 'packer', 'terraform', 'devops', 'AMI', 'image']
previousPostSlug: 'aws-cli'
nextPostSlug: 'intro-to-terraform-with-aws'
---

Learn the basics of using packer to create AMIs in AWS by setting up an AMI that runs a basic node web application.


## Chapters:

* 0:00​ Intro
* 1:00 What is Packer
* 2:39 Setting up the project
* 4:28 Amazon Plugin
* 5:15 Source Block
* 7:39 Build Block
* 9:29 Bash Script Provisioner
* 10:40 File Provisioner
* 16:20 Packer Build
* 19:48 Local Variables
* 21:10 Source AMI Filter
* 23:57 Review

🔗Code:
[https://github.com/Sam-Meech-Ward/intro-to-packer](https://github.com/Sam-Meech-Ward/intro-to-packer)
[https://github.com/Sam-Meech-Ward/cocktails.git](https://github.com/Sam-Meech-Ward/cocktails.git)

🔗Other tutorials:
Intro to Horizontal Scaling, Load Balancing, Immutable Infrastructure with AWS: [https://youtu.be/FEbfvTZCYQQ](https://youtu.be/FEbfvTZCYQQ)
Deploy Node app on AWS EC2 Amazon Linux 2 [https://youtu.be/oHAQ3TzUTro](https://youtu.be/oHAQ3TzUTro)
Intro to Terraform with AWS: [https://youtu.be/KmtWuYh4s8o](https://youtu.be/KmtWuYh4s8o)
Cloud Computing Playlist: [https://youtube.com/playlist?list=PL0X6fGhFFNTcU-_MCPe9dkH6sqmgfhy_M](https://youtube.com/playlist?list=PL0X6fGhFFNTcU-_MCPe9dkH6sqmgfhy_M)

Variables and Outputs in Terraform: [https://sammeechward.com/variables-and-outputs-in-terraform/](https://sammeechward.com/variables-and-outputs-in-terraform/)
S3 and IAM with Terraform: [https://sammeechward.com/s3-and-iam-with-terraform/](https://sammeechward.com/s3-and-iam-with-terraform/)
Cloud-init and Terraform with AWS: [https://sammeechward.com/cloud-init-and-terraform-with-aws/](https://sammeechward.com/cloud-init-and-terraform-with-aws/)

🔗Installing Packer:
[https://learn.hashicorp.com/tutorials/packer/get-started-install-cli?in=packer/aws-get-started](https://learn.hashicorp.com/tutorials/packer/get-started-install-cli?in=packer/aws-get-started)


