This course is currently in Beta, content may be updated as we refine the material

Packer 101: Golden Images for AWS, Azure, and GCP

A hands-on course on HashiCorp Packer 1.16. Build golden machine images as code. Start with Docker, then bake Ubuntu AMIs on AWS with amazon-ebs and provision with shell and Ansible. Write the same template shape for Azure and Google Cloud, validate it from the first AMI labs, and bake live Azure and GCP images when academy credentials allow. Parameterize HCL2 templates, select a source with -only='*.amazon-ebs.*', attach unsigned SLSA provenance, consume AMIs from Terraform, and operate a parent/child golden-image factory. HCP Packer is covered conceptually so you can evaluate the registry without needing a HashiCorp Cloud org.

18+ hours content
Certificate included
Enroll Now - Start Learning
30-Day Money-Back Guarantee

Course Preview

18+ hours
Video Content
9
Hands-on Labs
100%
Online

Why This Course is Different

Get everything you need to master platform engineering and advance your career

Certificate of Completion

Earn a certificate while gaining real-world skills that go beyond traditional certification prep

Hands-on Labs

9 practical labs with real-world scenarios in pre-configured cloud environments

Expert-Led

Learn from Sam Gabrail, Former HashiCorp Sr. Solutions Engineer with 18+ years experience

Community Support

Join our community where members help each other and collaborate on learning

Share this Course

What You'll Master

Explain golden images and when to bake versus configure at launch

Write HCL2 Packer templates with required_plugins, sources, and builds

Build a Docker image and an Amazon EBS-backed AMI with Packer

Parameterize templates with variables, locals, and data sources

Provision images with shell, file, and ansible-local

Adapt the same template shape to azure-arm and googlecompute

Build from a multi-cloud template using -only='*.amazon-ebs.*' to select a source

Emit a manifest and unsigned SLSA provenance for a build

Launch a baked AMI with Terraform and tear it down

Describe HCP Packer channels and revocation without depending on HCP in labs

Clean up AMIs, snapshots, and cloud images so image pipelines do not leak cost

Course Curriculum

SECTION 1COURSE INTRODUCTION

Course overview, the TeKanAid community, Packer editions and licensing, and how the hands-on labs work.

  • Welcome and Course Overview
  • Community
  • Editions, Licensing, and What You Will Build
  • Environment Setup and Lab Conventions
4 lessons • 0 quizzes • 0 labs

SECTION 2IMMUTABLE INFRASTRUCTURE AND GOLDEN IMAGES

Why snowflake servers drift, what golden images fix, and when Packer beats cloud-native image builders or boot-time configuration.

  • Snowflake Servers and Drift
  • Golden Images and Immutable Infrastructure
  • Packer vs Terraform, cloud-init, and Ansible-at-Boot
  • Packer vs Cloud-Native Image Builders
  • When Not to Bake an Image
  • Immutable Infrastructure and Golden Images QuizQuiz
5 lessons • 1 quizzes • 0 labs

SECTION 3PACKER ARCHITECTURE, PLUGINS, AND THE CLI

HCL2 template anatomy, required_plugins and packer init, builders versus data sources, and the Packer CLI.

  • Template Anatomy
  • Plugin Model and packer init
  • Builders, Data Sources, and Communicators
  • CLI: fmt, validate, inspect, and build
  • HCL2 versus JSON and hcl2_upgrade
  • Packer Architecture QuizQuiz
5 lessons • 1 quizzes • 0 labs

SECTION 4FIRST IMAGE WITH DOCKER

Build your first Packer image with the Docker builder using Ubuntu 24.04, then debug a failed provisioner.

  • Why Start with Docker
  • Your First HCL Template
  • Shell Provisioner on Docker
  • Debug Failed Builds
  • First Image with Docker QuizQuiz
  • First Image with DockerLab
4 lessons • 1 quizzes • 1 labs

SECTION 5HCL2: VARIABLES, LOCALS, AND DATA SOURCES

Parameterize Packer templates with variables, locals, functions, and data sources across AWS, Azure, and GCP shapes.

  • Variable Types, Defaults, and Sensitive
  • Var Files, Environment Variables, and Precedence
  • Locals and Functions
  • Data Sources
  • Splitting Files
  • HCL2 Language QuizQuiz
5 lessons • 1 quizzes • 0 labs

SECTION 6BUILDING AMIS ON AWS

Bake Ubuntu 24.04 AMIs with amazon-ebs, IMDSv2, SSH, tagging, and cleanup, with Azure and GCP mapping.

  • The amazon-ebs Pipeline
  • source_ami_filter vs data.amazon-ami
  • Instance Type, VPC, and IMDSv2
  • SSH Communicator and Ephemeral Keys
  • AMI Naming, Tagging, and Regions
  • Windows AMIs and Azure/GCP Pipeline Mapping
  • Building AMIs on AWS QuizQuiz
  • First AWS AMILab
  • Parameterize an AWS AMILab
6 lessons • 1 quizzes • 2 labs

SECTION 7PROVISIONING IMAGES

Install and configure software into images with shell, file, and ansible-local provisioners, including continue_on_error.

  • Shell Provisioner
  • File Provisioner and templatefile
  • Ansible and ansible-local
  • only, except, and continue_on_error
  • Debugging Failed Provisioners
  • Provisioning Images QuizQuiz
  • Shell, File, and Ansible ProvisionersLab
5 lessons • 1 quizzes • 1 labs

SECTION 8AZURE AND GCP IMAGE BUILDERS

Build managed images on Azure and custom images on GCP, map concepts to AMIs, and respect academy size and region limits.

  • Azure ARM Auth and Managed Images
  • Azure Compute Gallery (Conceptual)
  • googlecompute Auth, Families, and Zones
  • AMI vs Managed Image vs GCE Image
  • IAM Least Privilege per Builder
  • Academy Region, Size, and Disk Constraints
  • Azure and GCP Image Builders QuizQuiz
  • Azure Managed ImageLab
  • GCP Custom ImageLab
6 lessons • 1 quizzes • 2 labs

SECTION 9MULTI-CLOUD TEMPLATES AND PARALLEL BUILDS

Keep amazon-ebs, azure-arm, and googlecompute sources in one template and select AWS with HCL2 build-name globs.

  • Multiple Sources, One Build
  • only, except, and Build Names
  • Shared vs Source-Specific Provisioners
  • Source Overrides and Naming
  • Multi-cloud Templates QuizQuiz
  • Multi-cloud Template, AWS BakeLab
4 lessons • 1 quizzes • 1 labs

SECTION 10POST-PROCESSORS, PROVENANCE, AND METADATA

Capture build metadata with manifest and unsigned SLSA provenance, and clean up AMIs explicitly.

  • The Manifest Post-Processor
  • Docker Tag and Local Naming
  • Provenance and verify-attestation
  • AMI Management vs Explicit Cleanup
  • Post-processors, Provenance, and Metadata QuizQuiz
4 lessons • 1 quizzes • 0 labs

SECTION 11IMAGE LIFECYCLE, SECURITY, AND HARDENING

Version and tag images, manage copy and share, clean up snapshots, harden Linux AMIs, and ask who built an image.

  • Versioning and Tag Conventions
  • Copy, Share, and Deprecate
  • Snapshot Cost and Cleanup
  • Hardening Checklist
  • Supply Chain: Who Built This?
  • Image Lifecycle, Security, and Hardening QuizQuiz
5 lessons • 1 quizzes • 0 labs

SECTION 12TERRAFORM CONSUMPTION AND PLATFORM WORKFLOWS

Launch baked AMIs with Terraform 1.16.2, read AMI IDs from manifests or filters, and compare user_data to baked images.

  • Packer Builds, Terraform Launches
  • Reading the AMI ID from Manifest or Filters
  • Azure and GCP Terraform Consumption
  • user_data vs Baked Images
  • Terraform Consumption QuizQuiz
  • Launch a Baked AMI with TerraformLab
4 lessons • 1 quizzes • 1 labs

SECTION 13CI/CD, GOLDEN IMAGE FACTORY, HCP PACKER, WRAP-UP

Automate Packer in CI, build parent and child golden images with unsigned provenance, and understand HCP Packer conceptually.

  • CI Pattern: PR Validates, Main Builds
  • GitHub Actions Workflow File (Local Execution)
  • Parent/Child Golden Image Pipeline
  • HCP Packer: Registry, Channels, and Revoke (Conceptual)
  • Local Manifest and channels.json Analog
  • Wrap-Up and What's Next
  • CI/CD, Golden Factory, and HCP Wrap-Up QuizQuiz
  • Golden Image FactoryLab
6 lessons • 1 quizzes • 1 labs

Course Features

Hands-on Labs - Lots of hands-on labs to learn by doing

Hands-on Labs

Lots of hands-on labs to learn by doing

Join our Community - Community support to ask questions and collaborate

Join our Community

Community support to ask questions and collaborate

Test Your Knowledge - Quizzes to help you grasp the material well

Test Your Knowledge

Quizzes to help you grasp the material well

See what others are saying about our Courses

I like the Crossplane 101 course a lot. I think it is one of the best online courses I have taken (and I've taken a lot in the last 2 years, transitioning into DevOps). The labs are phenomenal – every task has a long tutorial with lots of explanations, gotchas, and recaps, and you always provide the reasoning for implementing a certain solution.
Maor Klir - Platform Engineer
Maor Klir
Platform Engineer
I just completed the Crossplane 101 course! Managing infrastructure as Kubernetes resources is a total game-changer. A huge thanks to TeKanAid and Sam Gabrail for the incredible training and insights.
Tiago Teixeira Santos - SRE / Platform Engineer
Tiago Teixeira Santos
SRE / Platform Engineer
Although I've worked with Crossplane in real production environments, I always felt there were gaps in my understanding. Completing this course filled those gaps perfectly. I had to unlearn and relearn quite a few things, especially around Crossplane v2.0 concepts. Well structured and thoughtfully put together. Highly recommended for building a strong, foundational understanding of Crossplane.
Vasil Shaikh - Cloud/DevSecOps Engineer
Vasil Shaikh
Cloud/DevSecOps Engineer
Dear Sam, I hope this email finds you well. If you remember before the end of last year I register for one your courses Terraform 101 – Certified Terraform Associate, I must admit that I learned a lot even though I was not patient enough for all videos to be available. All in all I enjoy the way you structured the course and how you went through it. The main reason of this email, to send you my gratitude for the content you created and to let you know that I passed my exam/test last week.
Danny Hirwa - Information Technology Support Assistant at Semalytix
Danny Hirwa
Information Technology Support Assistant at Semalytix
This course was a perfect introduction to Terraform and Infrastructure as Code. Loved the gitpod, saving me a lot of time for developer environment setup. We have a project at work where we want to go from a click-ops version of server-deploy to a more automated flow using ci/cd and terraform for deploying virtual servers.
Hanne Stroem - Infrastructure Architect
Hanne Stroem
Infrastructure Architect
I want to thank you for such wonderful courses. They are more comprehensive than other courses I have taken in the past. You take the time to explain every detail of the code and what it does exactly, further enforcing your student's understanding and confidence in what they are learning. Your methods are very effective and set you apart from other instructors.
S.A. - DevOps Engineer
S.A.
DevOps Engineer

Choose your plan

Simple, Transparent Pricing

Unlock full access to TeKanAid courses, labs, and bootcamps

Buying for a team? Private corporate training is available for up to 15 learners.View team training
MonthlyQuarterly
Try Premium free for 7 days →

Just exploring? Start free below. Want the full experience? Try Premium free for 7 days (card required, $0 today).

Pro

All courses, with lab scripts to run on your own machine

$59/month

Renews automatically. Cancel anytime.

Final price verified at checkout.

  • Full access to all courses
  • Lab scripts to download and run on your own machine (hosted labs not included)
  • Progress tracking
  • Certificate of completion
  • Community access
  • Self-paced bootcamps
  • Premium puzzle library not included (5 free puzzles available)
  • New content access
Recommended

Premium

Full access, including unlimited hosted labs

$99/month

Renews automatically. Cancel anytime.

Final price verified at checkout.

  • Everything in Pro
  • Unlimited hands-on labs, fully hosted on TeKanAid Academy (nothing to set up)
  • Full access to the puzzle library
  • Lab AI Assistant
  • Priority support

Prefer just this course?

Purchase Packer 101: Golden Images for AWS, Azure, and GCP for a one-time fee of $79. Full access to course content, quizzes, certificates, and community features, lab access is not included.

Buy this course for $79

Just exploring? Start free, no account needed

Three free ways to start. All bridge into the paid Premium catalog when you're ready.

Not ready to commit? The crash course is email-only. No academy account required.

Hi there, I'm Sam

I'm a husband and father of two wonderful boys. I'm also very passionate 🔥 about all things technology. From when I was 10, I had a dream to become a computer 💻 engineer one day. Here I am today living the dream!

Thanks for visiting TeKanAid Academy. My goal is to teach you all things DevOps. Below are some of the things I've done over the years. I'm confident that I can help you achieve your dreams too.

  • 18+ years of experience in various Information Technology fields from Telecommunications, Computer Networks, Digital Transformation, DevOps, Cybersecurity, and IoT
  • President of TeKanAid Solutions Inc. building online content in the DevOps space
  • Previous – Sr. Solutions Engineer at HashiCorp
Read More
Sam Gabrail - Platform Engineering Educator and HashiCorp Authorized Instructor

View my Certifications

Terraform: Authorized HashiCorp Instructor - HashiCorp Partner Network (HPN) Certification Badge

Terraform: Authorized HashiCorp Instructor

Verify my certificate

HashiCorp Authorized Instructors are experienced DevOps professionals who deliver official HashiCorp training courses in person and virtually.

Issued by HashiCorp Partner Network (HPN)

Vault: Authorized HashiCorp Instructor - HashiCorp Partner Network (HPN) Certification Badge

Vault: Authorized HashiCorp Instructor

Verify my certificate

HashiCorp Authorized Instructors are experienced DevOps professionals who deliver official HashiCorp training courses in person and virtually.

Issued by HashiCorp Partner Network (HPN)

HashiCorp Certified: Terraform Associate (002) - HashiCorp Certification Badge

HashiCorp Certified: Terraform Associate (002)

Verify my certificate

Earners of the HashiCorp Certified: Terraform Associate certification know the basic concepts, skills, and use cases associated with open source HashiCorp Terraform.

Issued by HashiCorp

HashiCorp Certified: Vault Associate (002) - HashiCorp Certification Badge

HashiCorp Certified: Vault Associate (002)

Verify my certificate

Earners of the HashiCorp Certified: Vault Associate certification know the basic concepts, skills, and use cases associated with open source HashiCorp Vault.

Issued by HashiCorp

Featured Products

Week 4: AI Agents and Agentic Workflows - Platform Engineering Course

Week 4: AI Agents and Agentic Workflows

Part of the AI Platform Engineering Bootcamp. Week 4 of 8. The bootcamp follows an 8-week arc that culminates in a capstone Platform Assistant: a production-ready AI system you build by combining the LLM, RAG, agent, MLOps, model serving, and observability layers introduced across each week.

Learn More →
Week 1: AI Foundations for Infrastructure Engineers - Platform Engineering Course

Week 1: AI Foundations for Infrastructure Engineers

Part of the AI Platform Engineering Bootcamp. Week 1 of 8. The bootcamp follows an 8-week arc that culminates in a capstone Platform Assistant: a production-ready AI system you build by combining the LLM, RAG, agent, MLOps, model serving, and observability layers introduced across each week.

Learn More →
Week 7: AI Observability and LLMOps - Platform Engineering Course

Week 7: AI Observability and LLMOps

Part of the AI Platform Engineering Bootcamp. Week 7 of 8. The bootcamp follows an 8-week arc that culminates in a capstone Platform Assistant: a production-ready AI system you build by combining the LLM, RAG, agent, MLOps, model serving, and observability layers introduced across each week.

Learn More →
Money Back Guarantee

30-Day Money-Back Guarantee

Try it risk-free

I'm confident you'll get everything you need from this course and be 100% satisfied. But in the unlikely event you decide it's not for you just ask for a refund any time during the first 30 days and you'll get your money back with no questions asked.