CINXE.COM
Packer by HashiCorp
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta http-equiv="x-ua-compatible" content="ie=edge"/><meta name="theme-color" content="#000"/><meta name="twitter:description" content="Packer is an image creation tool for creating golden images for multiple platforms from a single source configuration."/><link href="/favicon.ico" rel="icon"/><title>Packer by HashiCorp</title><meta content="Packer by HashiCorp" property="og:title" name="twitter:title"/><meta content="Use Packer to create golden images for multiple platforms from a single source configuration." name="description"/><meta content="Use Packer to create golden images for multiple platforms from a single source configuration." property="og:description" name="twitter:description"/><meta content="https://www.datocms-assets.com/58478/1713792524-social-packer-io.png?auto=format&fit=max&w=1200" property="og:image" name="twitter:image"/><meta content="1200" property="og:image:width"/><meta content="675" property="og:image:height"/><meta content="en" property="og:locale"/><meta content="website" property="og:type"/><meta content="HashiCorp | An IBM Company" property="og:site_name"/><meta content="2024-04-22T13:28:54Z" property="article:modified_time"/><meta content="https://www.facebook.com/HashiCorp/" property="article:publisher"/><meta content="summary_large_image" name="twitter:card"/><meta content="@HashiCorp" name="twitter:site"/><link rel="preload" as="image" imageSrcSet="/img/hero-pattern-start.svg 640w, /img/hero-pattern-start.svg 750w, /img/hero-pattern-start.svg 828w, /img/hero-pattern-start.svg 1080w, /img/hero-pattern-start.svg 1200w, /img/hero-pattern-start.svg 1920w, /img/hero-pattern-start.svg 2048w, /img/hero-pattern-start.svg 3840w" imageSizes="100vw"/><link rel="preload" as="image" imageSrcSet="/img/hero-pattern-end.svg 640w, /img/hero-pattern-end.svg 750w, /img/hero-pattern-end.svg 828w, /img/hero-pattern-end.svg 1080w, /img/hero-pattern-end.svg 1200w, /img/hero-pattern-end.svg 1920w, /img/hero-pattern-end.svg 2048w, /img/hero-pattern-end.svg 3840w" imageSizes="100vw"/><meta name="next-head-count" content="22"/><link rel="preload" href="/_next/static/media/d29050812a1756cf-s.p.woff2" as="font" type="font/woff2" crossorigin="anonymous" data-next-font="size-adjust"/><link rel="preload" href="/_next/static/css/127bae683b7eb5ad.css" as="style"/><link rel="stylesheet" href="/_next/static/css/127bae683b7eb5ad.css" data-n-g=""/><link rel="preload" href="/_next/static/css/4bab173da2f5e5e8.css" as="style"/><link rel="stylesheet" href="/_next/static/css/4bab173da2f5e5e8.css" data-n-p=""/><link rel="preload" href="/_next/static/css/9c425adbd6f04d47.css" as="style"/><link rel="stylesheet" href="/_next/static/css/9c425adbd6f04d47.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js"></script><script src="/_next/static/chunks/webpack-c1345b18bf1542fc.js" defer=""></script><script src="/_next/static/chunks/framework-d805e4be61624b3f.js" defer=""></script><script src="/_next/static/chunks/main-d5c88385158a4104.js" defer=""></script><script src="/_next/static/chunks/pages/_app-9c1dfd0e822dcb33.js" defer=""></script><script src="/_next/static/chunks/208-a8b4ed31025e0ac7.js" defer=""></script><script src="/_next/static/chunks/51-f55ad0cacdaea654.js" defer=""></script><script src="/_next/static/chunks/909-84d0086fa6dd1a00.js" defer=""></script><script src="/_next/static/chunks/217-46d0a12bd31a594d.js" defer=""></script><script src="/_next/static/chunks/896-d2525aea5fa34712.js" defer=""></script><script src="/_next/static/chunks/80-90977be81ab69428.js" defer=""></script><script src="/_next/static/chunks/pages/index-312b158230e6b499.js" defer=""></script><script src="/_next/static/lguUjWKUNN7osC0s97IMM/_buildManifest.js" defer=""></script><script src="/_next/static/lguUjWKUNN7osC0s97IMM/_ssgManifest.js" defer=""></script></head><body><div id="__next"><div class="__variable_b1925c style_hashicorpSans__8YLQu"><div class="style_root__LttoZ"><div><div class="style_root__bvcD0 style_packer__bkDJA style_isShown__yRAgE style_hideOnMobile___33eq"><a href="https://developer.hashicorp.com/packer" class="style_linkElem__WCqLq"><span class="style_textContainer__wbueM"><span class="style_tag__YEFbB g-type-body-small-x-strong">Site Update<!-- --> </span><span class="style_text__bjoeL g-type-body-small">We are retiring this site on April 15th, 2025. After that, you鈥檒l be automatically redirected to developer.hashicorp.com, where you can find all product documentation in one place.<span class="style_link__P9pO8 g-type-body-small-x-strong"><span class="style_linkText__mgb17"> <!-- -->Check it out</span><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="M8.235 4.045a.75.75 0 111.03-1.09l4.5 4.25a.75.75 0 010 1.09l-4.5 4.25a.75.75 0 01-1.03-1.09L11.364 8.5H2.75a.75.75 0 010-1.5h8.614L8.235 4.045z"></path></svg></span></span></span></a></div><style>:root{--subnav-height:0px}</style><nav aria-label="HashiCorp Packer pages" data-orientation="horizontal" dir="ltr" class="style_root__nB428 style_subnav__sktgc"><div class="style_subnavInnerRoot__ZvWLz"><div class="style_subnavInner__u1VdV style_packer__bkDJA g-grid-container" data-overflow-target="true"><a class="style_root__3ic2H" title="HashiCorp Packer" href="/"><img blurWidth="0" blurHeight="0" alt="packer logo" loading="lazy" width="398" height="72" decoding="async" data-nimg="1" style="color:transparent" src="/_next/static/media/packer-community_on-light.2abe8aaa.svg"/></a><div class="style_subNavRight__dHMnv"><div style="position:relative"><ul data-orientation="horizontal" class="style_root__7Cqde" dir="ltr"><li class="style_listItem__ePalb"><a class="style_navLink__lUB0n hds-typography-body-200 hds-font-weight-medium" data-radix-collection-item="" href="/"><span class="style_root__GQva3">Overview</span></a></li><li><span class="style_verticalDivider__k356f"></span></li><li class="style_listItem__ePalb"><button id="radix-:R2j6:-trigger-Use Cases" data-state="closed" aria-expanded="false" aria-controls="radix-:R2j6:-content-Use Cases" class="style_root__4d4Hx hds-typography-body-200 hds-font-weight-medium" data-radix-collection-item=""><span class="style_root__GQva3">Use Cases</span><svg class="flight-icon flight-icon-chevron-down flight-icon-display-inline" aria-hidden="true" fill="currentColor" id=":R4mdmj6:" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><use href="/_next/static/media/svg-sprite.8ce6dd4a.svg#flight-chevron-down-16"></use></svg></button></li><li class="style_listItem__ePalb"><a class="style_navLink__lUB0n hds-typography-body-200 hds-font-weight-medium" data-radix-collection-item="" href="https://developer.hashicorp.com/packer/tutorials"><span class="style_root__GQva3">Tutorials</span></a></li><li class="style_listItem__ePalb"><a class="style_navLink__lUB0n hds-typography-body-200 hds-font-weight-medium" data-radix-collection-item="" href="https://developer.hashicorp.com/packer/docs"><span class="style_root__GQva3">Docs</span></a></li><li class="style_listItem__ePalb"><a class="style_navLink__lUB0n hds-typography-body-200 hds-font-weight-medium" data-radix-collection-item="" href="https://developer.hashicorp.com/packer/guides"><span class="style_root__GQva3">Guides</span></a></li><li class="style_listItem__ePalb"><a class="style_navLink__lUB0n hds-typography-body-200 hds-font-weight-medium" data-radix-collection-item="" href="https://developer.hashicorp.com/packer/integrations"><span class="style_root__GQva3">Integrations</span></a></li><li class="style_listItem__ePalb"><a class="style_navLink__lUB0n hds-typography-body-200 hds-font-weight-medium" data-radix-collection-item="" href="/community"><span class="style_root__GQva3">Community</span></a></li></ul></div><div style="position:relative"><ul data-orientation="horizontal" class="style_root__CWFof" dir="ltr"><a href="https://www.github.com/hashicorp/packer" class="style_root__Y8uIR"><span class="style_github__Qywwq"><svg width="16" height="16" viewBox="0 0 16 16"><path fill-rule="evenodd" fill="#000000" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"></path></svg><span style="position:absolute;border:0;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;word-wrap:normal">GitHub</span></span></a><a class="hds-button hds-button--size-medium styles_mds-button--color-secondary-white__X7HER" href="https://developer.hashicorp.com/packer/downloads"><div class="hds-button__text">Install Packer</div></a><a class="hds-button hds-button--size-medium styles_mds-button--color-packer__pEmIT" href="https://portal.cloud.hashicorp.com/sign-up"><div class="hds-button__text">Try HCP Packer</div></a></ul></div></div></div></div></nav><div class="style_packer__bkDJA"><header class="style_hero__qgnpM"><div class="style_patterns__PdvWf"><div class="style_patternsStart___R6EO"><span style="box-sizing:border-box;display:block;overflow:hidden;width:initial;height:initial;background:none;opacity:1;border:0;margin:0;padding:0;position:absolute;top:0;left:0;bottom:0;right:0"><img alt="" sizes="100vw" srcSet="/img/hero-pattern-start.svg 640w, /img/hero-pattern-start.svg 750w, /img/hero-pattern-start.svg 828w, /img/hero-pattern-start.svg 1080w, /img/hero-pattern-start.svg 1200w, /img/hero-pattern-start.svg 1920w, /img/hero-pattern-start.svg 2048w, /img/hero-pattern-start.svg 3840w" src="/img/hero-pattern-start.svg" decoding="async" data-nimg="fill" style="position:absolute;top:0;left:0;bottom:0;right:0;box-sizing:border-box;padding:0;border:none;margin:auto;display:block;width:0;height:0;min-width:100%;max-width:100%;min-height:100%;max-height:100%;object-fit:cover"/></span></div><div class="style_patternsEnd__aYqQC"><span style="box-sizing:border-box;display:block;overflow:hidden;width:initial;height:initial;background:none;opacity:1;border:0;margin:0;padding:0;position:absolute;top:0;left:0;bottom:0;right:0"><img alt="" sizes="100vw" srcSet="/img/hero-pattern-end.svg 640w, /img/hero-pattern-end.svg 750w, /img/hero-pattern-end.svg 828w, /img/hero-pattern-end.svg 1080w, /img/hero-pattern-end.svg 1200w, /img/hero-pattern-end.svg 1920w, /img/hero-pattern-end.svg 2048w, /img/hero-pattern-end.svg 3840w" src="/img/hero-pattern-end.svg" decoding="async" data-nimg="fill" style="position:absolute;top:0;left:0;bottom:0;right:0;box-sizing:border-box;padding:0;border:none;margin:auto;display:block;width:0;height:0;min-width:100%;max-width:100%;min-height:100%;max-height:100%;object-fit:cover"/></span></div></div><div class="style_container__JtlmL g-grid-container"><div class="style_inner__aILgA"><div class="style_intro__2_M1H style_center__EVNpS" data-testid="intro"><h2 class="style_heading__k0dyY g-type-display-1">Automate image builds with Packer</h2><p class="style_description__UldYs g-type-body-large">Create identical images for multiple platforms from a single source configuration.</p><div class="style_actions__JsKtD"><div class="style_actions__SWgov style_stacked__eDb8Q style_center__H3Afs style_mixed__J3AKP" data-testid="actions"><a class="hds-button hds-button--size-large styles_mds-button--color-packer__pEmIT" data-testid="button-0" href="https://portal.cloud.hashicorp.com/sign-up"><div class="hds-button__text">Try HCP Packer</div></a><a class="hds-link-standalone hds-link-standalone--size-large hds-link-standalone--icon-position-trailing hds-link-standalone--color-secondary" data-testid="standaloneLink-1" href="https://developer.hashicorp.com/packer/downloads"><div class="hds-link-standalone__text">Download Packer</div><div class="hds-link-standalone__icon"><svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" fill="none" viewBox="0 0 24 24" aria-hidden="true" style="display:block"><path fill="currentColor" d="M12.229 5.04a.75.75 0 011.042-1.08l7.5 7.25a.75.75 0 010 1.08l-7.5 7.25a.75.75 0 11-1.042-1.08l6.166-5.96H3.75a.75.75 0 010-1.5h14.645l-6.166-5.96z"></path></svg></div></a></div></div></div></div></div></header><section class="style_root__Sk9bN style_withOfferings__M__5n" style="--brand:var(--packer)"><header class="style_header__dyFFm"><div class="style_container__Z2EZb g-grid-container"><div class="style_headerInner__CX1ee"><h2 class="style_heading__F0V5B g-type-display-2">Images as code</h2><p class="style_description__0bsr4 g-type-body-large">Packer standardizes and automates the process of building system and container images.</p></div></div></header><div class="style_offerings__GQzH9 g-grid-container"><div class="style_offeringsMedia__w2ql8"><span style="box-sizing:border-box;display:inline-block;overflow:hidden;width:initial;height:initial;background:none;opacity:1;border:0;margin:0;padding:0;position:relative;max-width:100%"><span style="box-sizing:border-box;display:block;width:initial;height:initial;background:none;opacity:1;border:0;margin:0;padding:0;max-width:100%"><img style="display:block;max-width:100%;width:initial;height:initial;background:none;opacity:1;border:0;margin:0;padding:0" alt="" aria-hidden="true" src="data:image/svg+xml,%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20version=%271.1%27%20width=%27586%27%20height=%27385%27/%3e"/></span><img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" decoding="async" data-nimg="intrinsic" style="position:absolute;top:0;left:0;bottom:0;right:0;box-sizing:border-box;padding:0;border:none;margin:auto;display:block;width:0;height:0;min-width:100%;max-width:100%;min-height:100%;max-height:100%"/><noscript><img loading="lazy" decoding="async" data-nimg="intrinsic" style="position:absolute;top:0;left:0;bottom:0;right:0;box-sizing:border-box;padding:0;border:none;margin:auto;display:block;width:0;height:0;min-width:100%;max-width:100%;min-height:100%;max-height:100%" srcSet="https://www.datocms-assets.com/58478/1666276390-packer-intro-grapic.svg 1x, https://www.datocms-assets.com/58478/1666276390-packer-intro-grapic.svg 2x" src="https://www.datocms-assets.com/58478/1666276390-packer-intro-grapic.svg"/></noscript></span></div><div class="style_offeringsContent__ySS0O"><ul class="style_offeringsList__S9x9O"><li><h3 class="style_offeringsListHeading__ke1XR g-type-display-4">Multi-cloud image workflow</h3><p class="style_offeringsListDescription__CQ899 g-type-body-small">Create one workflow for images across multiple clouds and private infrastructure.</p></li><li><h3 class="style_offeringsListHeading__ke1XR g-type-display-4">Extend Packer with plugins</h3><p class="style_offeringsListDescription__CQ899 g-type-body-small">Plugins extend Packer鈥檚 functionality without modifying Packer's core by adding new builders, provisioners, post-processors, and data sources.</p></li></ul></div></div></section><section class="style_useCases___Kat2"><div class="style_container__SRuaN g-grid-container"><div class="style_cardContainer__QyiuQ"><header class="style_header__gtA_7"><h2 class="style_heading___XZgP g-type-display-2">Common use cases for Packer</h2></header><ul class="style_cardList__bMCxR style_fourUp__YjbZs" style="--length:4"><li><article class="style_card__N3OVX"><a class="style_light__ryPJU style_md__1XrUV" href="/use-cases/automated-machine-images"><h2 class="style_heading__Zlt6_ g-type-display-5">Automated image builds</h2><p class="style_description__Enk6p g-type-body-small">Automate the creation of any type of machine or container image. Customize images to match application and organizational requirements.</p><footer class="style_footer__cBS_c"><span class="style_linkType__fzh8X"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24" aria-hidden="true"><path fill="currentColor" d="M12.229 5.04a.75.75 0 011.042-1.08l7.5 7.25a.75.75 0 010 1.08l-7.5 7.25a.75.75 0 11-1.042-1.08l6.166-5.96H3.75a.75.75 0 010-1.5h14.645l-6.166-5.96z"></path></svg></span></footer></a></article></li><li><article class="style_card__N3OVX"><a class="style_light__ryPJU style_md__1XrUV" href="/use-cases/golden-image-pipeline"><h2 class="style_heading__Zlt6_ g-type-display-5">Golden image pipeline</h2><p class="style_description__Enk6p g-type-body-small">Integrate image management with provisioning workflows to automate updates across downstream builds.</p><footer class="style_footer__cBS_c"><span class="style_linkType__fzh8X"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24" aria-hidden="true"><path fill="currentColor" d="M12.229 5.04a.75.75 0 011.042-1.08l7.5 7.25a.75.75 0 010 1.08l-7.5 7.25a.75.75 0 11-1.042-1.08l6.166-5.96H3.75a.75.75 0 010-1.5h14.645l-6.166-5.96z"></path></svg></span></footer></a></article></li><li><article class="style_card__N3OVX"><a class="style_light__ryPJU style_md__1XrUV" href="/use-cases/image-compliance"><h2 class="style_heading__Zlt6_ g-type-display-5">Image compliance</h2><p class="style_description__Enk6p g-type-body-small">Create one security and compliance workflow for images that are provisioned across multiple clouds.</p><footer class="style_footer__cBS_c"><span class="style_linkType__fzh8X"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24" aria-hidden="true"><path fill="currentColor" d="M12.229 5.04a.75.75 0 011.042-1.08l7.5 7.25a.75.75 0 010 1.08l-7.5 7.25a.75.75 0 11-1.042-1.08l6.166-5.96H3.75a.75.75 0 010-1.5h14.645l-6.166-5.96z"></path></svg></span></footer></a></article></li><li><article class="style_card__N3OVX"><a class="style_light__ryPJU style_md__1XrUV" href="/use-cases/integrate-with-terraform"><h2 class="style_heading__Zlt6_ g-type-display-5">Integrate with Terraform</h2><p class="style_description__Enk6p g-type-body-small">Create multi-cloud golden image pipelines with HCP Packer and HCP Terraform.</p><footer class="style_footer__cBS_c"><span class="style_linkType__fzh8X"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24" aria-hidden="true"><path fill="currentColor" d="M12.229 5.04a.75.75 0 011.042-1.08l7.5 7.25a.75.75 0 010 1.08l-7.5 7.25a.75.75 0 11-1.042-1.08l6.166-5.96H3.75a.75.75 0 010-1.5h14.645l-6.166-5.96z"></path></svg></span></footer></a></article></li></ul></div></div></section><section class="style_inPractice__Utxep" style="--pattern:url(/_next/static/media/practice-pattern.a0bc0ce1.svg)"><div class="style_container__LDLuk g-grid-container"><div class="style_cardContainer__QyiuQ style_dark__6j8nx"><header class="style_header__gtA_7"><h2 class="style_heading___XZgP g-type-display-2">Packer in practice</h2><p class="style_description__OVNCY g-type-body-large">The best way to understand what Packer can enable for your projects is to see it in action.</p></header><ul class="style_cardList__bMCxR style_threeUp__x9Koc" style="--length:6"><li><article class="style_card__N3OVX"><a class="style_dark__u4Zc9 style_md__1XrUV" href="https://developer.hashicorp.com/packer/tutorials/aws-get-started"><p class="style_eyebrow__b3Aup g-type-label-small">Tutorial</p><h2 class="style_heading__Zlt6_ g-type-display-5">Getting started with AWS</h2><p class="style_description__Enk6p g-type-body-small">Build an Ubuntu machine image on AWS in this tutorial.</p><footer class="style_footer__cBS_c"><ul class="style_products__VG86x"><li><svg class="flight-icon flight-icon-packer flight-icon-display-inline" aria-hidden="true" fill="#fff" id=":R5hklr6:" width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><use href="/_next/static/media/svg-sprite.8ce6dd4a.svg#flight-packer-24"></use></svg></li></ul><span class="style_linkType__fzh8X"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24" aria-hidden="true"><path fill="currentColor" d="M12.229 5.04a.75.75 0 011.042-1.08l7.5 7.25a.75.75 0 010 1.08l-7.5 7.25a.75.75 0 11-1.042-1.08l6.166-5.96H3.75a.75.75 0 010-1.5h14.645l-6.166-5.96z"></path></svg></span></footer></a></article></li><li><article class="style_card__N3OVX"><a class="style_dark__u4Zc9 style_md__1XrUV" href="https://developer.hashicorp.com/packer/tutorials/docker-get-started"><p class="style_eyebrow__b3Aup g-type-label-small">Tutorial</p><h2 class="style_heading__Zlt6_ g-type-display-5">Getting started with Docker</h2><p class="style_description__Enk6p g-type-body-small">Build a Docker image on your local machine without using any paid cloud resources.</p><footer class="style_footer__cBS_c"><ul class="style_products__VG86x"><li><svg class="flight-icon flight-icon-packer flight-icon-display-inline" aria-hidden="true" fill="#fff" id=":R5iklr6:" width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><use href="/_next/static/media/svg-sprite.8ce6dd4a.svg#flight-packer-24"></use></svg></li></ul><span class="style_linkType__fzh8X"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24" aria-hidden="true"><path fill="currentColor" d="M12.229 5.04a.75.75 0 011.042-1.08l7.5 7.25a.75.75 0 010 1.08l-7.5 7.25a.75.75 0 11-1.042-1.08l6.166-5.96H3.75a.75.75 0 010-1.5h14.645l-6.166-5.96z"></path></svg></span></footer></a></article></li><li><article class="style_card__N3OVX"><a class="style_dark__u4Zc9 style_md__1XrUV" href="https://developer.hashicorp.com/terraform/tutorials/provision/packer"><p class="style_eyebrow__b3Aup g-type-label-small">Tutorial</p><h2 class="style_heading__Zlt6_ g-type-display-5">Provision infrastructure with Packer</h2><p class="style_description__Enk6p g-type-body-small">Create a Packer image with a user group, a new user with authorized SSH keys, and a Go web app. Then, deploy this image using Terraform.</p><footer class="style_footer__cBS_c"><ul class="style_products__VG86x"><li><svg class="flight-icon flight-icon-packer flight-icon-display-inline" aria-hidden="true" fill="#fff" id=":R5jklr6:" width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><use href="/_next/static/media/svg-sprite.8ce6dd4a.svg#flight-packer-24"></use></svg></li><li><svg class="flight-icon flight-icon-terraform flight-icon-display-inline" aria-hidden="true" fill="#fff" id=":R9jklr6:" width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><use href="/_next/static/media/svg-sprite.8ce6dd4a.svg#flight-terraform-24"></use></svg></li></ul><span class="style_linkType__fzh8X"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24" aria-hidden="true"><path fill="currentColor" d="M12.229 5.04a.75.75 0 011.042-1.08l7.5 7.25a.75.75 0 010 1.08l-7.5 7.25a.75.75 0 11-1.042-1.08l6.166-5.96H3.75a.75.75 0 010-1.5h14.645l-6.166-5.96z"></path></svg></span></footer></a></article></li><li><article class="style_card__N3OVX"><a class="style_dark__u4Zc9 style_md__1XrUV" href="https://developer.hashicorp.com/terraform/tutorials/virtual-machine/vsphere-provider"><p class="style_eyebrow__b3Aup g-type-label-small">Tutorial</p><h2 class="style_heading__Zlt6_ g-type-display-5">Manage VMs and snapshots on vSphere</h2><p class="style_description__Enk6p g-type-body-small">Create a VMware vSphere template using Packer and provision a virtual machine (VM) from that template using Terraform.</p><footer class="style_footer__cBS_c"><ul class="style_products__VG86x"><li><svg class="flight-icon flight-icon-packer flight-icon-display-inline" aria-hidden="true" fill="#fff" id=":R5kklr6:" width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><use href="/_next/static/media/svg-sprite.8ce6dd4a.svg#flight-packer-24"></use></svg></li><li><svg class="flight-icon flight-icon-terraform flight-icon-display-inline" aria-hidden="true" fill="#fff" id=":R9kklr6:" width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><use href="/_next/static/media/svg-sprite.8ce6dd4a.svg#flight-terraform-24"></use></svg></li></ul><span class="style_linkType__fzh8X"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24" aria-hidden="true"><path fill="currentColor" d="M12.229 5.04a.75.75 0 011.042-1.08l7.5 7.25a.75.75 0 010 1.08l-7.5 7.25a.75.75 0 11-1.042-1.08l6.166-5.96H3.75a.75.75 0 010-1.5h14.645l-6.166-5.96z"></path></svg></span></footer></a></article></li><li><article class="style_card__N3OVX"><a class="style_dark__u4Zc9 style_md__1XrUV" href="https://www.hashicorp.com/blog/using-template-files-with-hashicorp-packer"><p class="style_eyebrow__b3Aup g-type-label-small">Blog</p><h2 class="style_heading__Zlt6_ g-type-display-5">Template files</h2><p class="style_description__Enk6p g-type-body-small">Use template files to reduce duplication when building multiple images.</p><footer class="style_footer__cBS_c"><ul class="style_products__VG86x"><li><svg class="flight-icon flight-icon-packer flight-icon-display-inline" aria-hidden="true" fill="#fff" id=":R5lklr6:" width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><use href="/_next/static/media/svg-sprite.8ce6dd4a.svg#flight-packer-24"></use></svg></li></ul><span class="style_linkType__fzh8X"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24" aria-hidden="true"><path fill="currentColor" d="M12.229 5.04a.75.75 0 011.042-1.08l7.5 7.25a.75.75 0 010 1.08l-7.5 7.25a.75.75 0 11-1.042-1.08l6.166-5.96H3.75a.75.75 0 010-1.5h14.645l-6.166-5.96z"></path></svg></span></footer></a></article></li><li><article class="style_card__N3OVX"><a class="style_dark__u4Zc9 style_md__1XrUV" href="https://developer.hashicorp.com/packer/tutorials/configuration-language/hcl2-upgrade"><p class="style_eyebrow__b3Aup g-type-label-small">Tutorial</p><h2 class="style_heading__Zlt6_ g-type-display-5">Upgrade Packer JSON template to HCL2</h2><p class="style_description__Enk6p g-type-body-small">Upgrade a Packer JSON template that builds a Docker image to HCL2, then add provisioners and post processors to the upgraded HCL2 template.</p><footer class="style_footer__cBS_c"><ul class="style_products__VG86x"><li><svg class="flight-icon flight-icon-packer flight-icon-display-inline" aria-hidden="true" fill="#fff" id=":R5mklr6:" width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><use href="/_next/static/media/svg-sprite.8ce6dd4a.svg#flight-packer-24"></use></svg></li></ul><span class="style_linkType__fzh8X"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24" aria-hidden="true"><path fill="currentColor" d="M12.229 5.04a.75.75 0 011.042-1.08l7.5 7.25a.75.75 0 010 1.08l-7.5 7.25a.75.75 0 11-1.042-1.08l6.166-5.96H3.75a.75.75 0 010-1.5h14.645l-6.166-5.96z"></path></svg></span></footer></a></article></li></ul></div></div></section><section class="style_root__h0AgZ"><div class="style_container__T338w g-grid-container"><header class="style_header__sXL6I"><h2 class="style_heading__uMpkz g-type-display-3">Customer stories</h2><p class="style_description__zCP3d g-type-body">An inside look at powerful solutions from some of the world鈥檚 most innovative companies.</p></header><div class="style_caseStudies__M9CT0"><ul class="style_primary__gLYqf"><li class="style_primaryItem__vOUsW"><a class="style_card__xLmlz" href="https://www.hashicorp.com/resources/automating-way-out-federal-data-centers-into-cloud-automated-image"><h3 class="style_cardHeading__y_tEm g-type-display-4">Automating our way out of federal datacenters and into the cloud: Automated image pipelines</h3><span style="box-sizing:border-box;display:block;overflow:hidden;width:initial;height:initial;background:none;opacity:1;border:0;margin:0;padding:0;position:absolute;top:0;left:0;bottom:0;right:0"><img alt="Accenture and Microsoft" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" decoding="async" data-nimg="fill" class="style_cardThumbnail__Iu8e_" style="position:absolute;top:0;left:0;bottom:0;right:0;box-sizing:border-box;padding:0;border:none;margin:auto;display:block;width:0;height:0;min-width:100%;max-width:100%;min-height:100%;max-height:100%;object-fit:cover"/><noscript><img alt="Accenture and Microsoft" loading="lazy" decoding="async" data-nimg="fill" style="position:absolute;top:0;left:0;bottom:0;right:0;box-sizing:border-box;padding:0;border:none;margin:auto;display:block;width:0;height:0;min-width:100%;max-width:100%;min-height:100%;max-height:100%;object-fit:cover" class="style_cardThumbnail__Iu8e_" sizes="100vw" srcSet="/_next/image?url=https%3A%2F%2Fwww.datocms-assets.com%2F58478%2F1657921273-fed-image-pipeline-hero-1.png&w=640&q=75 640w, /_next/image?url=https%3A%2F%2Fwww.datocms-assets.com%2F58478%2F1657921273-fed-image-pipeline-hero-1.png&w=750&q=75 750w, /_next/image?url=https%3A%2F%2Fwww.datocms-assets.com%2F58478%2F1657921273-fed-image-pipeline-hero-1.png&w=828&q=75 828w, /_next/image?url=https%3A%2F%2Fwww.datocms-assets.com%2F58478%2F1657921273-fed-image-pipeline-hero-1.png&w=1080&q=75 1080w, /_next/image?url=https%3A%2F%2Fwww.datocms-assets.com%2F58478%2F1657921273-fed-image-pipeline-hero-1.png&w=1200&q=75 1200w, /_next/image?url=https%3A%2F%2Fwww.datocms-assets.com%2F58478%2F1657921273-fed-image-pipeline-hero-1.png&w=1920&q=75 1920w, /_next/image?url=https%3A%2F%2Fwww.datocms-assets.com%2F58478%2F1657921273-fed-image-pipeline-hero-1.png&w=2048&q=75 2048w, /_next/image?url=https%3A%2F%2Fwww.datocms-assets.com%2F58478%2F1657921273-fed-image-pipeline-hero-1.png&w=3840&q=75 3840w" src="/_next/image?url=https%3A%2F%2Fwww.datocms-assets.com%2F58478%2F1657921273-fed-image-pipeline-hero-1.png&w=3840&q=75"/></noscript></span></a></li><li class="style_primaryItem__vOUsW"><a class="style_card__xLmlz" href="https://www.hashicorp.com/resources/how-whiterabbit-ai-uses-terraform-packer-fight-cancer-machine-learning"><h3 class="style_cardHeading__y_tEm g-type-display-4">How Whiterabbit.ai uses Terraform and Packer to fight cancer with machine learning</h3><span style="box-sizing:border-box;display:block;overflow:hidden;width:initial;height:initial;background:none;opacity:1;border:0;margin:0;padding:0;position:absolute;top:0;left:0;bottom:0;right:0"><img alt="Whiterabbit.ai logo" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" decoding="async" data-nimg="fill" class="style_cardThumbnail__Iu8e_" style="position:absolute;top:0;left:0;bottom:0;right:0;box-sizing:border-box;padding:0;border:none;margin:auto;display:block;width:0;height:0;min-width:100%;max-width:100%;min-height:100%;max-height:100%;object-fit:cover"/><noscript><img alt="Whiterabbit.ai logo" loading="lazy" decoding="async" data-nimg="fill" style="position:absolute;top:0;left:0;bottom:0;right:0;box-sizing:border-box;padding:0;border:none;margin:auto;display:block;width:0;height:0;min-width:100%;max-width:100%;min-height:100%;max-height:100%;object-fit:cover" class="style_cardThumbnail__Iu8e_" sizes="100vw" srcSet="/_next/image?url=https%3A%2F%2Fwww.datocms-assets.com%2F58478%2F1657922004-whiterabbit_logo_square.png&w=640&q=75 640w, /_next/image?url=https%3A%2F%2Fwww.datocms-assets.com%2F58478%2F1657922004-whiterabbit_logo_square.png&w=750&q=75 750w, /_next/image?url=https%3A%2F%2Fwww.datocms-assets.com%2F58478%2F1657922004-whiterabbit_logo_square.png&w=828&q=75 828w, /_next/image?url=https%3A%2F%2Fwww.datocms-assets.com%2F58478%2F1657922004-whiterabbit_logo_square.png&w=1080&q=75 1080w, /_next/image?url=https%3A%2F%2Fwww.datocms-assets.com%2F58478%2F1657922004-whiterabbit_logo_square.png&w=1200&q=75 1200w, /_next/image?url=https%3A%2F%2Fwww.datocms-assets.com%2F58478%2F1657922004-whiterabbit_logo_square.png&w=1920&q=75 1920w, /_next/image?url=https%3A%2F%2Fwww.datocms-assets.com%2F58478%2F1657922004-whiterabbit_logo_square.png&w=2048&q=75 2048w, /_next/image?url=https%3A%2F%2Fwww.datocms-assets.com%2F58478%2F1657922004-whiterabbit_logo_square.png&w=3840&q=75 3840w" src="/_next/image?url=https%3A%2F%2Fwww.datocms-assets.com%2F58478%2F1657922004-whiterabbit_logo_square.png&w=3840&q=75"/></noscript></span></a></li></ul><ul class="style_secondary__8h3aK"><li class="style_secondaryItem__rqE0b"><a class="style_link__X19T0" href="https://www.hashicorp.com/resources/automating-image-pipelines-with-hcp-packer"><span class="style_linkInner__DMf0x"><h3 class="style_linkHeading__Fg7qz g-type-display-6">Automating image pipelines with HCP Packer</h3><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16" aria-hidden="true"><g fill="currentColor"><path d="M9 .75A.75.75 0 019.75 0h4.5c.206 0 .393.083.529.218l.001.002.002.001A.748.748 0 0115 .75v4.5a.75.75 0 01-1.5 0V2.56L7.28 8.78a.75.75 0 01-1.06-1.06l6.22-6.22H9.75A.75.75 0 019 .75z"></path><path d="M3.25 3.5a.75.75 0 00-.75.75v7.5c0 .414.336.75.75.75h7.5a.75.75 0 00.75-.75v-4a.75.75 0 011.5 0v4A2.25 2.25 0 0110.75 14h-7.5A2.25 2.25 0 011 11.75v-7.5A2.25 2.25 0 013.25 2h4a.75.75 0 010 1.5h-4z"></path></g></svg></span></a></li><li class="style_secondaryItem__rqE0b"><a class="style_link__X19T0" href="https://www.hashicorp.com/resources/redeploying-stateless-systems-in-lieu-of-patching-petco-packer-terraform"><span class="style_linkInner__DMf0x"><h3 class="style_linkHeading__Fg7qz g-type-display-6">Redeploying stateless systems in lieu of patching at Petco with Packer and Terraform</h3><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16" aria-hidden="true"><g fill="currentColor"><path d="M9 .75A.75.75 0 019.75 0h4.5c.206 0 .393.083.529.218l.001.002.002.001A.748.748 0 0115 .75v4.5a.75.75 0 01-1.5 0V2.56L7.28 8.78a.75.75 0 01-1.06-1.06l6.22-6.22H9.75A.75.75 0 019 .75z"></path><path d="M3.25 3.5a.75.75 0 00-.75.75v7.5c0 .414.336.75.75.75h7.5a.75.75 0 00.75-.75v-4a.75.75 0 011.5 0v4A2.25 2.25 0 0110.75 14h-7.5A2.25 2.25 0 011 11.75v-7.5A2.25 2.25 0 013.25 2h4a.75.75 0 010 1.5h-4z"></path></g></svg></span></a></li><li class="style_secondaryItem__rqE0b"><a class="style_link__X19T0" href="https://www.hashicorp.com/blog/logic-monitor-uses-terraform-packer-and-consul-for"><span class="style_linkInner__DMf0x"><h3 class="style_linkHeading__Fg7qz g-type-display-6">LogicMonitor uses Terraform, Packer, and Consul for disaster recovery environments</h3><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16" aria-hidden="true"><g fill="currentColor"><path d="M9 .75A.75.75 0 019.75 0h4.5c.206 0 .393.083.529.218l.001.002.002.001A.748.748 0 0115 .75v4.5a.75.75 0 01-1.5 0V2.56L7.28 8.78a.75.75 0 01-1.06-1.06l6.22-6.22H9.75A.75.75 0 019 .75z"></path><path d="M3.25 3.5a.75.75 0 00-.75.75v7.5c0 .414.336.75.75.75h7.5a.75.75 0 00.75-.75v-4a.75.75 0 011.5 0v4A2.25 2.25 0 0110.75 14h-7.5A2.25 2.25 0 011 11.75v-7.5A2.25 2.25 0 013.25 2h4a.75.75 0 010 1.5h-4z"></path></g></svg></span></a></li></ul></div></div></section><div class="style_callToAction__1hyN_"><div class="variant-compact-grid_root__YcqsJ variant-compact-grid_theme-dark__qwrlc"><div class="variant-compact-grid_container__1kNZ2 g-grid-container g-grid"><h2 class="variant-compact-grid_heading__NHYd5 g-type-display-2" data-testid="heading">Ready to get started?</h2><div class="variant-compact-grid_contentAndLinks__SV6Aj"><div class="variant-compact-grid_content__xn7zT g-type-body-large variant-compact-grid_hasHeading__jW6sv" data-testid="content">Start by following a tutorial to create a simple VM image with Packer or learn about how the project works by exploring the documentation.</div><div class="hds-button-set variant-compact-grid_links__FN7L8" data-testid="links"><a class="hds-button hds-button--size-large styles_mds-button--color-packer__pEmIT" href="https://developer.hashicorp.com/packer/tutorials"><div class="hds-button__text">Get started</div></a><a class="hds-button hds-button--size-large styles_mds-button--color-secondary-white__X7HER" href="https://developer.hashicorp.com/packer/docs"><div class="hds-button__text">Explore documentation</div><div class="hds-button__icon"><svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" fill="none" viewBox="0 0 24 24" aria-hidden="true" style="display:block"><path fill="currentColor" d="M12.229 5.04a.75.75 0 011.042-1.08l7.5 7.25a.75.75 0 010 1.08l-7.5 7.25a.75.75 0 11-1.042-1.08l6.166-5.96H3.75a.75.75 0 010-1.5h14.645l-6.166-5.96z"></path></svg></div></a></div></div></div></div></div><section class="style_nextSteps__LWayV style_packer__bkDJA" data-testid="next-steps"><div class="style_container__5ulpP g-grid-container g-grid"><div class="style_content__COcx6"><div class="style_intro__2_M1H" data-testid="intro"><h2 class="style_heading__k0dyY g-type-display-2">Next steps</h2><p class="style_description__UldYs g-type-body">HCP Packer is a multi-cloud artifact registry for Packer. Get started for free and pay only for what you use.</p></div></div><div class="style_stepsWrapper__8Vk5U"><ul class="style_stepsList__080gm"><li class="style_stepsListItem__L4QX0 style_stepsListItemFeature__AjFyI"><a class="style_tile__IVeZ1 style_primary__LOKAo" href="https://developer.hashicorp.com/packer/downloads"><div class="style_tileInner__sTtfk"><h3 class="style_tileHeading__cJu7w"><span class="style_tileHeadingText__pDjL3 g-type-display-4">Community</span></h3><p class="style_tileDescription__opRXm g-type-display-6">Self-managed | Always free</p><span class="style_tileCta__5H_bo"><span class="style_tileCtaLabel__i6MLa">Download</span><span class="style_tileCtaIcon__dHIxr"><svg class="style_root__2q02b" width="12" height="10" viewBox="0 0 12 10" fill="none" xmlns="http://www.w3.org/2000/svg" focusable="false" data-testid="expandable-arrow"><path d="M7.25 1L11.25 5L7.25 9" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"></path><path class="style_line__9Oa6E" d="M10 5H0" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"></path></svg></span></span></div><span class="style_tileScrim__qs2Ut"></span></a></li><li class="style_stepsListItem__L4QX0"><a class="style_tile__IVeZ1" href="https://www.hashicorp.com/products/packer/pricing"><div class="style_tileInner__sTtfk"><h3 class="style_tileHeading__cJu7w"><span class="style_tileHeadingText__pDjL3 g-type-display-4">Cloud</span></h3><p class="style_tileDescription__opRXm g-type-display-6">Managed artifact registry</p><span class="style_tileCta__5H_bo"><span class="style_tileCtaLabel__i6MLa">Compare plans</span><span class="style_tileCtaIcon__dHIxr"><svg class="style_root__2q02b" width="12" height="10" viewBox="0 0 12 10" fill="none" xmlns="http://www.w3.org/2000/svg" focusable="false" data-testid="expandable-arrow"><path d="M7.25 1L11.25 5L7.25 9" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"></path><path class="style_line__9Oa6E" d="M10 5H0" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"></path></svg></span></span></div><span class="style_tileScrim__qs2Ut"></span></a></li><li class="style_stepsListItem__L4QX0"><a class="style_tile__IVeZ1" href="https://developer.hashicorp.com/packer/tutorials/docker-get-started/get-started-install-cli"><div class="style_tileInner__sTtfk"><h3 class="style_tileHeading__cJu7w"><span class="style_tileHeadingText__pDjL3 g-type-display-4">New to Packer?</span></h3><p class="style_tileDescription__opRXm g-type-display-6">Get started</p><span class="style_tileCta__5H_bo"><span class="style_tileCtaLabel__i6MLa">Install Packer</span><span class="style_tileCtaIcon__dHIxr"><svg class="style_root__2q02b" width="12" height="10" viewBox="0 0 12 10" fill="none" xmlns="http://www.w3.org/2000/svg" focusable="false" data-testid="expandable-arrow"><path d="M7.25 1L11.25 5L7.25 9" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"></path><path class="style_line__9Oa6E" d="M10 5H0" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"></path></svg></span></span></div><span class="style_tileScrim__qs2Ut"></span></a></li></ul></div></div></section></div></div><div class="style_footer__g9IfD"><footer class="g-footer"><div class="g-grid-container"><div class="left"><a href="https://developer.hashicorp.com/packer/docs/intro">Intro</a><a href="https://developer.hashicorp.com/packer/guides">Guides</a><a href="https://developer.hashicorp.com/packer/docs">Docs</a><a href="/community">Community</a><a href="https://hashicorp.com/trust/privacy">Privacy</a><a href="/security">Security</a><a>Consent Manager</a></div></div></footer></div></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"layoutProps":{"packerNav":{"useCases":[{"url":"automated-machine-images","text":"Automated image builds"},{"url":"golden-image-pipeline","text":"Golden image pipeline"},{"url":"image-compliance","text":"Image compliance"},{"url":"integrate-with-terraform","text":"Integrate with Terraform"}]}},"data":{"seo":[{"attributes":null,"content":"Packer by HashiCorp","tag":"title"},{"attributes":{"property":"og:title","content":"Packer by HashiCorp","name":"twitter:title"},"content":null,"tag":"meta"},{"attributes":{"name":"twitter:title","content":"Packer by HashiCorp"},"content":null,"tag":"meta"},{"attributes":{"name":"description","content":"Use Packer to create golden images for multiple platforms from a single source configuration."},"content":null,"tag":"meta"},{"attributes":{"property":"og:description","content":"Use Packer to create golden images for multiple platforms from a single source configuration.","name":"twitter:description"},"content":null,"tag":"meta"},{"attributes":{"name":"twitter:description","content":"Use Packer to create golden images for multiple platforms from a single source configuration."},"content":null,"tag":"meta"},{"attributes":{"property":"og:image","content":"https://www.datocms-assets.com/58478/1713792524-social-packer-io.png?auto=format\u0026fit=max\u0026w=1200","name":"twitter:image"},"content":null,"tag":"meta"},{"attributes":{"property":"og:image:width","content":"1200"},"content":null,"tag":"meta"},{"attributes":{"property":"og:image:height","content":"675"},"content":null,"tag":"meta"},{"attributes":{"name":"twitter:image","content":"https://www.datocms-assets.com/58478/1713792524-social-packer-io.png?auto=format\u0026fit=max\u0026w=1200"},"content":null,"tag":"meta"},{"attributes":{"property":"og:locale","content":"en"},"content":null,"tag":"meta"},{"attributes":{"property":"og:type","content":"website"},"content":null,"tag":"meta"},{"attributes":{"property":"og:site_name","content":"HashiCorp | An IBM Company"},"content":null,"tag":"meta"},{"attributes":{"property":"article:modified_time","content":"2024-04-22T13:28:54Z"},"content":null,"tag":"meta"},{"attributes":{"property":"article:publisher","content":"https://www.facebook.com/HashiCorp/"},"content":null,"tag":"meta"},{"attributes":{"name":"twitter:card","content":"summary_large_image"},"content":null,"tag":"meta"},{"attributes":{"name":"twitter:site","content":"@HashiCorp"},"content":null,"tag":"meta"}],"heroHeading":"Automate image builds with Packer","heroDescription":"Create identical images for multiple platforms from a single source configuration.","heroCtas":[{"title":"Try HCP Packer","link":"https://portal.cloud.hashicorp.com/sign-up"},{"title":"Download Packer","link":"https://developer.hashicorp.com/packer/downloads"}],"introHeading":"Images as code","introDescription":"Packer standardizes and automates the process of building system and container images.","introOfferingsImage":{"url":"https://www.datocms-assets.com/58478/1666276390-packer-intro-grapic.svg","width":586,"height":385,"alt":null},"introOfferings":[{"heading":"Multi-cloud image workflow","description":"Create one workflow for images across multiple clouds and private infrastructure."},{"heading":"Extend Packer with plugins","description":"Plugins extend Packer鈥檚 functionality without modifying Packer's core by adding new builders, provisioners, post-processors, and data sources."}],"introOfferingsCta":[],"introCallout":[],"introVideo":[],"inPracticeHeading":"Packer in practice","inPracticeDescription":"The best way to understand what Packer can enable for your projects is to see it in action.","inPracticeCards":[{"eyebrow":"Tutorial","heading":"Getting started with AWS","description":"Build an Ubuntu machine image on AWS in this tutorial.","link":"https://developer.hashicorp.com/packer/tutorials/aws-get-started","products":[{"name":"Packer"}]},{"eyebrow":"Tutorial","heading":"Getting started with Docker","description":"Build a Docker image on your local machine without using any paid cloud resources.","link":"https://developer.hashicorp.com/packer/tutorials/docker-get-started","products":[{"name":"Packer"}]},{"eyebrow":"Tutorial","heading":"Provision infrastructure with Packer","description":"Create a Packer image with a user group, a new user with authorized SSH keys, and a Go web app. Then, deploy this image using Terraform.","link":"https://developer.hashicorp.com/terraform/tutorials/provision/packer","products":[{"name":"Packer"},{"name":"Terraform"}]},{"eyebrow":"Tutorial","heading":"Manage VMs and snapshots on vSphere","description":"Create a VMware vSphere template using Packer and provision a virtual machine (VM) from that template using Terraform.","link":"https://developer.hashicorp.com/terraform/tutorials/virtual-machine/vsphere-provider","products":[{"name":"Packer"},{"name":"Terraform"}]},{"eyebrow":"Blog","heading":"Template files","description":"Use template files to reduce duplication when building multiple images.","link":"https://www.hashicorp.com/blog/using-template-files-with-hashicorp-packer","products":[{"name":"Packer"}]},{"eyebrow":"Tutorial","heading":"Upgrade Packer JSON template to HCL2","description":"Upgrade a Packer JSON template that builds a Docker image to HCL2, then add provisioners and post processors to the upgraded HCL2 template.","link":"https://developer.hashicorp.com/packer/tutorials/configuration-language/hcl2-upgrade","products":[{"name":"Packer"}]}],"useCasesHeading":"Common use cases for Packer","useCasesDescription":"","useCases":[{"heroHeading":"Automated image builds","heroDescription":"Automate the creation of any type of machine or container image. Customize images to match application and organizational requirements.","slug":"automated-machine-images"},{"heroHeading":"Golden image pipeline","heroDescription":"Integrate image management with provisioning workflows to automate updates across downstream builds.","slug":"golden-image-pipeline"},{"heroHeading":"Image compliance","heroDescription":"Create one security and compliance workflow for images that are provisioned across multiple clouds.","slug":"image-compliance"},{"heroHeading":"Integrate with Terraform","heroDescription":"Create multi-cloud golden image pipelines with HCP Packer and HCP Terraform.","slug":"integrate-with-terraform"}],"caseStudiesHeading":"Customer stories","caseStudiesDescription":"An inside look at powerful solutions from some of the world鈥檚 most innovative companies.","caseStudiesFeatured":[{"thumbnail":{"url":"https://www.datocms-assets.com/58478/1657921273-fed-image-pipeline-hero-1.png","alt":"Accenture and Microsoft"},"heading":"Automating our way out of federal datacenters and into the cloud: Automated image pipelines","link":"https://www.hashicorp.com/resources/automating-way-out-federal-data-centers-into-cloud-automated-image"},{"thumbnail":{"url":"https://www.datocms-assets.com/58478/1657922004-whiterabbit_logo_square.png","alt":"Whiterabbit.ai logo"},"heading":"How Whiterabbit.ai uses Terraform and Packer to fight cancer with machine learning","link":"https://www.hashicorp.com/resources/how-whiterabbit-ai-uses-terraform-packer-fight-cancer-machine-learning"}],"caseStudiesLinks":[{"heading":"Automating image pipelines with HCP Packer","link":"https://www.hashicorp.com/resources/automating-image-pipelines-with-hcp-packer"},{"heading":"Redeploying stateless systems in lieu of patching at Petco with Packer and Terraform","link":"https://www.hashicorp.com/resources/redeploying-stateless-systems-in-lieu-of-patching-petco-packer-terraform"},{"heading":"LogicMonitor uses Terraform, Packer, and Consul for disaster recovery environments","link":"https://www.hashicorp.com/blog/logic-monitor-uses-terraform-packer-and-consul-for"}],"callToActionHeading":"Ready to get started?","callToActionDescription":"Start by following a tutorial to create a simple VM image with Packer or learn about how the project works by exploring the documentation.","callToActionCtas":[{"text":"Get started","url":"https://developer.hashicorp.com/packer/tutorials"},{"text":"Explore documentation","url":"https://developer.hashicorp.com/packer/docs"}],"preFooterHeading":"Next steps","preFooterDescription":"HCP Packer is a multi-cloud artifact registry for Packer. Get started for free and pay only for what you use.","preFooterCtas":[{"link":"https://developer.hashicorp.com/packer/downloads","heading":"Community","description":"Self-managed | Always free","cta":"Download"},{"link":"https://www.hashicorp.com/products/packer/pricing","heading":"Cloud","description":"Managed artifact registry","cta":"Compare plans"},{"link":"https://developer.hashicorp.com/packer/tutorials/docker-get-started/get-started-install-cli","heading":"New to Packer?","description":"Get started","cta":"Install Packer"}]}},"__N_SSG":true},"page":"/","query":{},"buildId":"lguUjWKUNN7osC0s97IMM","isFallback":false,"isExperimentalCompile":false,"gsp":true,"scriptLoader":[]}</script><script nomodule="">window.MSInputMethodContext && document.documentMode && document.write('<script src="/ie-warning.js"><\x2fscript>');</script></body></html>