{"id":32473,"date":"2026-11-30T22:08:07","date_gmt":"2026-11-30T22:08:07","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=32473"},"modified":"2026-11-30T22:08:07","modified_gmt":"2026-11-30T22:08:07","slug":"hashicorp-packer-example-program","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/hashicorp-packer-example-program\/","title":{"rendered":"Hashicorp Packer Example Program: AWS AMI"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">This tutorial uses a HashiCorp Packer HCL2 template to build a custom Amazon Machine Image (AMI). The template starts from Ubuntu 22.04 in the ap-south-1 (Mumbai) region and installs Redis on it. Below the example you will find an explanation of each block, a corrected template that still builds today, the commands to run, the errors you are likely to hit, and how to clean up afterwards.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<script src=\"https:\/\/gist.github.com\/devops-school\/1f9c0d899de1a1d745ece3ea1dc50e16.js\"><\/script>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">What the example template does<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Packer starts a temporary EC2 instance from a base AMI and connects to it over SSH. It runs your provisioners on that instance, then stops it and saves the result as a new AMI. It also deletes the temporary instance, key pair and security group it created. The template in the example above has three top-level blocks:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Block<\/th><th>Purpose<\/th><\/tr><\/thead><tbody><tr><td><code>packer { required_plugins }<\/code><\/td><td>Declares the Amazon plugin (<code>github.com\/hashicorp\/amazon<\/code>). <code>packer init<\/code> downloads it.<\/td><\/tr><tr><td><code>source &quot;amazon-ebs&quot; &quot;ubuntu&quot;<\/code><\/td><td>Defines the builder: region, instance type, base AMI lookup (<code>source_ami_filter<\/code>), SSH user and the name of the AMI to create.<\/td><\/tr><tr><td><code>source_ami_filter<\/code><\/td><td>Finds the base image. <code>099720109477<\/code> is Canonical&#039;s AWS account ID, so only official Ubuntu images match. <code>most_recent = true<\/code> picks the newest match.<\/td><\/tr><tr><td><code>build<\/code><\/td><td>Links the source to provisioners. The <code>shell<\/code> provisioner runs the inline commands on the temporary instance.<\/td><\/tr><tr><td><code>environment_vars<\/code><\/td><td>Exports <code>FOO=hello world<\/code> into the provisioner shell. That is why <code>example.txt<\/code> ends up containing <code>FOO is hello world<\/code>.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>amazon-ebs<\/code> builder produces an EBS-backed AMI. Its root volume is stored as an EBS snapshot in your account, and you are charged for that snapshot until you delete it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Packer installed locally. Check with <code>packer version<\/code>. The template uses HCL2 and <code>required_plugins<\/code>, so it needs a reasonably recent Packer release.<\/li>\n\n\n<li>An AWS account and credentials that Packer can find: an <code>AWS_PROFILE<\/code>, the <code>AWS_ACCESS_KEY_ID<\/code>\/<code>AWS_SECRET_ACCESS_KEY<\/code> environment variables, SSO, or an instance role. Packer uses the standard AWS SDK credential chain.<\/li>\n\n\n<li>IAM permissions to run, stop and terminate instances; create and delete key pairs, security groups, volumes and snapshots; and register, describe and tag images. The Packer Amazon plugin documentation publishes a minimal policy.<\/li>\n\n\n<li>A default VPC in the target region with a public subnet, or a <code>subnet_id<\/code> you specify that can reach the internet. Packer needs SSH access to the instance, and <code>apt-get<\/code> needs outbound internet access.<\/li>\n\n\n<li>Optional: the AWS CLI, used below to verify and clean up the AMI.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Corrected and improved template<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The original template has some problems. Its base-image filter points at a single dated 2022 image. Its AMI name is fixed, so a second build fails. It has empty credential fields, and it uses a fixed <code>sleep<\/code> to wait for the instance to be ready. Save the version below as <code>aws-ubuntu.pkr.hcl<\/code>:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript\">packer {\n  required_plugins {\n    amazon = {\n      version = <span class=\"hljs-string\">\"&gt;= 1.1.1\"<\/span>\n      source  = <span class=\"hljs-string\">\"github.com\/hashicorp\/amazon\"<\/span>\n    }\n  }\n}\n\nvariable <span class=\"hljs-string\">\"region\"<\/span> {\n  type    = string\n  <span class=\"hljs-keyword\">default<\/span> = <span class=\"hljs-string\">\"ap-south-1\"<\/span>\n}\n\nvariable <span class=\"hljs-string\">\"instance_type\"<\/span> {\n  type    = string\n  <span class=\"hljs-keyword\">default<\/span> = <span class=\"hljs-string\">\"t2.micro\"<\/span>\n}\n\nlocals {\n  timestamp = regex_replace(timestamp(), <span class=\"hljs-string\">\"&#91;- TZ:]\"<\/span>, <span class=\"hljs-string\">\"\"<\/span>)\n}\n\nsource <span class=\"hljs-string\">\"amazon-ebs\"<\/span> <span class=\"hljs-string\">\"ubuntu\"<\/span> {\n  ami_name      = <span class=\"hljs-string\">\"learn-packer-ubuntu-redis-${local.timestamp}\"<\/span>\n  instance_type = <span class=\"hljs-keyword\">var<\/span>.instance_type\n  region        = <span class=\"hljs-keyword\">var<\/span>.region\n\n  source_ami_filter {\n    filters = {\n      name                = <span class=\"hljs-string\">\"ubuntu\/images\/*ubuntu-jammy-22.04-amd64-server-*\"<\/span>\n      root-device-type    = <span class=\"hljs-string\">\"ebs\"<\/span>\n      virtualization-type = <span class=\"hljs-string\">\"hvm\"<\/span>\n    }\n    most_recent = <span class=\"hljs-literal\">true<\/span>\n    owners      = &#91;<span class=\"hljs-string\">\"099720109477\"<\/span>]\n  }\n\n  ssh_username = <span class=\"hljs-string\">\"ubuntu\"<\/span>\n\n  tags = {\n    Name          = <span class=\"hljs-string\">\"learn-packer-ubuntu-redis\"<\/span>\n    Base_AMI_Name = <span class=\"hljs-string\">\"{{ .SourceAMIName }}\"<\/span>\n    BuiltBy       = <span class=\"hljs-string\">\"packer\"<\/span>\n  }\n}\n\nbuild {\n  name    = <span class=\"hljs-string\">\"learn-packer\"<\/span>\n  sources = &#91;<span class=\"hljs-string\">\"source.amazon-ebs.ubuntu\"<\/span>]\n\n  provisioner <span class=\"hljs-string\">\"shell\"<\/span> {\n    environment_vars = &#91;\n      <span class=\"hljs-string\">\"FOO=hello world\"<\/span>,\n    ]\n    inline = &#91;\n      <span class=\"hljs-string\">\"echo Waiting for cloud-init to finish\"<\/span>,\n      <span class=\"hljs-string\">\"cloud-init status --wait || true\"<\/span>,\n      <span class=\"hljs-string\">\"echo Installing Redis\"<\/span>,\n      <span class=\"hljs-string\">\"sudo apt-get update\"<\/span>,\n      <span class=\"hljs-string\">\"sudo DEBIAN_FRONTEND=noninteractive apt-get install -y redis-server\"<\/span>,\n      <span class=\"hljs-string\">\"echo \\\"FOO is $FOO\\\" &gt; example.txt\"<\/span>,\n    ]\n  }\n}<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Wildcard AMI filter:<\/strong> <code>ubuntu\/images\/*ubuntu-jammy-22.04-amd64-server-*<\/code> matches every Jammy release, so <code>most_recent = true<\/code> selects the latest patched image. In the original, <code>most_recent<\/code> had no effect because the filter matched one exact, dated image. AWS deprecates older AMIs, and Packer leaves deprecated images out of filter results by default, so that exact image can stop matching.<\/li>\n\n\n<li><strong>Unique AMI name:<\/strong> AMI names must be unique per account and region. The timestamp suffix lets you run the build again without deleting the previous image first.<\/li>\n\n\n<li><strong>No credential fields:<\/strong> the empty <code>access_key<\/code> and <code>secret_key<\/code> lines are removed. Never put real keys in a template. Packer reads credentials from the environment or your AWS profile.<\/li>\n\n\n<li><strong><code>cloud-init status --wait<\/code><\/strong> replaces <code>sleep 30<\/code>. It waits exactly as long as first-boot setup needs, which avoids <code>apt<\/code> lock errors. The <code>|| true<\/code> is there because newer cloud-init versions return a non-zero exit code for warnings that are not fatal.<\/li>\n\n\n<li><strong><code>DEBIAN_FRONTEND=noninteractive<\/code><\/strong> is placed after <code>sudo<\/code>. <code>sudo<\/code> clears most environment variables, so setting it before <code>sudo<\/code> would not reach <code>apt-get<\/code>. Setting it here stops package prompts from stalling the build.<\/li>\n\n\n<li><strong>Variables and tags<\/strong> let you change the region or instance size without editing the file, and make the image easy to find later.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Build the AMI<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Set your credentials, for example <code>export AWS_PROFILE=dev<\/code>.<\/li>\n\n\n<li>Run <code>packer init .<\/code> to download the Amazon plugin declared in <code>required_plugins<\/code>.<\/li>\n\n\n<li>Run <code>packer fmt .<\/code> to normalise indentation. The original file mixes tabs and spaces.<\/li>\n\n\n<li>Run <code>packer validate .<\/code> to check syntax and required arguments before you spend money on an instance.<\/li>\n\n\n<li>Run <code>packer build aws-ubuntu.pkr.hcl<\/code>. To override a variable, add for example <code>-var &#039;region=us-east-1&#039;<\/code>.<\/li>\n<\/ol>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-2\" data-shcb-language-name=\"CSS\" data-shcb-language-slug=\"css\"><span><code class=\"hljs language-css\"><span class=\"hljs-selector-tag\">packer<\/span> <span class=\"hljs-selector-tag\">init<\/span> .\n<span class=\"hljs-selector-tag\">packer<\/span> <span class=\"hljs-selector-tag\">fmt<\/span> .\n<span class=\"hljs-selector-tag\">packer<\/span> <span class=\"hljs-selector-tag\">validate<\/span> .\n<span class=\"hljs-selector-tag\">packer<\/span> <span class=\"hljs-selector-tag\">build<\/span> <span class=\"hljs-selector-tag\">aws-ubuntu<\/span><span class=\"hljs-selector-class\">.pkr<\/span><span class=\"hljs-selector-class\">.hcl<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-2\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">CSS<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">css<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">A successful build usually takes a few minutes. It ends with output similar to this (IDs will differ):<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-3\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">==&gt; learn-packer.amazon-ebs.ubuntu: Creating AMI learn-packer-ubuntu-redis<span class=\"hljs-number\">-20261130120000<\/span> from instance i<span class=\"hljs-number\">-0<\/span>abc123...\n==&gt; learn-packer.amazon-ebs.ubuntu: Terminating the source AWS instance...\n==&gt; learn-packer.amazon-ebs.ubuntu: Deleting temporary security group...\n==&gt; learn-packer.amazon-ebs.ubuntu: Deleting temporary keypair...\nBuild <span class=\"hljs-string\">'learn-packer.amazon-ebs.ubuntu'<\/span> finished after <span class=\"hljs-number\">5<\/span> minutes <span class=\"hljs-number\">12<\/span> seconds.\n\n==&gt; Builds finished. The artifacts of successful builds are:\n--&gt; learn-packer.amazon-ebs.ubuntu: AMIs were created:\nap-south<span class=\"hljs-number\">-1<\/span>: ami<span class=\"hljs-number\">-0123456789<\/span>abcdef0<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-3\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> Set <code>PACKER_LOG=1<\/code> before <code>packer build<\/code> to get verbose logs. Add <code>-on-error=ask<\/code> to keep the temporary instance running after a failure so you can SSH in and debug it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Verify and use the new AMI<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">List the images you own that match the naming pattern:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-4\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">aws ec2 describe-images --owners <span class=\"hljs-keyword\">self<\/span> --region ap-south<span class=\"hljs-number\">-1<\/span> \\\n  --filters <span class=\"hljs-string\">\"Name=name,Values=learn-packer-ubuntu-redis-*\"<\/span> \\\n  --query <span class=\"hljs-string\">'Images&#91;].&#91;ImageId,Name,CreationDate]'<\/span> --output table<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-4\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">Launch an instance from the AMI and SSH in as <code>ubuntu<\/code>. Then run <code>systemctl status redis-server<\/code> and <code>redis-cli ping<\/code>, which should reply <code>PONG<\/code>. Also run <code>cat ~\/example.txt<\/code>, which should print <code>FOO is hello world<\/code>. The AMI can be referenced from a launch template; see <a href=\"https:\/\/www.devopsschool.com\/blog\/aws-tutorials-auto-scaling-group\/\">AWS Tutorials: Auto Scaling Group<\/a> for using a custom image at scale.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Common errors and fixes<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Error<\/th><th>Cause<\/th><th>Fix<\/th><\/tr><\/thead><tbody><tr><td><code>Missing plugins<\/code> \/ unknown source type <code>amazon-ebs<\/code><\/td><td><code>packer init<\/code> was not run<\/td><td>Run <code>packer init .<\/code> in the template directory<\/td><\/tr><tr><td><code>No AMI was found matching filters<\/code><\/td><td>The filter names one dated image that is now deprecated, or the region or owner is wrong<\/td><td>Use the wildcard filter shown above and check that <code>owners<\/code> is <code>099720109477<\/code><\/td><\/tr><tr><td><code>AMI Name: &#039;...&#039; is used by an existing AMI<\/code><\/td><td>Fixed <code>ami_name<\/code> from an earlier build<\/td><td>Add the timestamp suffix, or deregister the old AMI first<\/td><\/tr><tr><td><code>NoCredentialProviders<\/code> or <code>no valid providers in chain<\/code><\/td><td>Packer cannot find AWS credentials<\/td><td>Export <code>AWS_PROFILE<\/code> or the access key variables, then check with <code>aws sts get-caller-identity<\/code><\/td><\/tr><tr><td><code>UnauthorizedOperation<\/code><\/td><td>The IAM identity lacks an EC2 permission<\/td><td>Attach the minimal Packer policy from the plugin documentation<\/td><\/tr><tr><td><code>Timeout waiting for SSH<\/code><\/td><td>No default VPC, a private subnet, or no public IP<\/td><td>Set <code>subnet_id<\/code> and <code>associate_public_ip_address = true<\/code>, or use Session Manager with <code>ssh_interface = &quot;session_manager&quot;<\/code><\/td><\/tr><tr><td><code>Could not get lock \/var\/lib\/dpkg\/lock-frontend<\/code><\/td><td>cloud-init or unattended-upgrades is still running apt<\/td><td>Keep <code>cloud-init status --wait<\/code> before running <code>apt-get<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Clean up and best practices<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Each build leaves an AMI and an EBS snapshot that you keep paying for. Deregistering an AMI does not delete its snapshot, so remove both:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-5\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript\">AMI_ID=ami<span class=\"hljs-number\">-0123456789<\/span>abcdef0\nSNAP_ID=$(aws ec2 describe-images --image-ids <span class=\"hljs-string\">\"$AMI_ID\"<\/span> --region ap-south<span class=\"hljs-number\">-1<\/span> \\\n  --query <span class=\"hljs-string\">'Images&#91;0].BlockDeviceMappings&#91;0].Ebs.SnapshotId'<\/span> --output text)\naws ec2 deregister-image --image-id <span class=\"hljs-string\">\"$AMI_ID\"<\/span> --region ap-south<span class=\"hljs-number\">-1<\/span>\naws ec2 <span class=\"hljs-keyword\">delete<\/span>-snapshot --snapshot-id <span class=\"hljs-string\">\"$SNAP_ID\"<\/span> --region ap-south<span class=\"hljs-number\">-1<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-5\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<ul class=\"wp-block-list\">\n<li>Keep the template in Git and run <code>packer fmt -check<\/code> and <code>packer validate<\/code> in CI.<\/li>\n\n\n<li>Move long inline commands into a <code>script<\/code> file, or into Ansible, once provisioning goes beyond a few lines.<\/li>\n\n\n<li>Pin the plugin to a major version (for example <code>~&gt; 1<\/code>) so that an incompatible new major version is not picked up silently.<\/li>\n\n\n<li>Use <code>ami_regions<\/code> to copy the image to other regions, and <code>ami_users<\/code> to share it with other accounts in your organisation.<\/li>\n\n\n<li>Rebuild images regularly so they pick up security patches, rather than patching long-running instances.<\/li>\n\n\n<li>Find more image and automation guides under <a href=\"https:\/\/www.devopsschool.com\/blog\/category\/infrastructure-as-code\/\">Infrastructure as Code tutorials<\/a>.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Frequently asked questions<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Why does Packer say no AMI was found matching filters?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The filter must match at least one image that is available in your region. A filter naming one dated image, such as the 20220912 Jammy build, stops matching once AWS deprecates that image, because deprecated images are excluded by default. Use a wildcard name pattern with <code>most_recent = true<\/code>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Do I need to put AWS access keys in the Packer template?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">No. Packer uses the standard AWS credential chain: environment variables, shared config profiles, SSO and instance roles. Leave <code>access_key<\/code> and <code>secret_key<\/code> out, so that secrets never end up in source control.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How do I build an Ubuntu 24.04 AMI instead of 22.04?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Change the filter name to <code>ubuntu\/images\/*ubuntu-noble-24.04-amd64-server-*<\/code> and keep Canonical&#039;s owner ID <code>099720109477<\/code>. The wildcard after <code>images\/<\/code> matches both of the storage paths Canonical uses in image names.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Can I run packer build twice with the same template?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Only if the AMI name changes each time, because AMI names must be unique per account and region. Add a timestamp to <code>ami_name<\/code> as shown above, or set <code>force_deregister = true<\/code> and <code>force_delete_snapshot = true<\/code> to replace the previous image.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Does Packer delete the EC2 instance it creates?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Yes. It terminates the temporary instance and removes the temporary key pair and security group, unless you pass <code>-on-error=abort<\/code> or choose to keep them with <code>-on-error=ask<\/code>. The AMI and its snapshot stay in your account until you delete them.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Related tutorials<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.devopsschool.com\/blog\/aws-tutorials-auto-scaling-group\/\">AWS Tutorials: Auto Scaling Group<\/a><\/li>\n\n\n<li><a href=\"https:\/\/www.devopsschool.com\/blog\/category\/infrastructure-as-code\/\">More Infrastructure as Code tutorials<\/a><\/li>\n\n\n<li><a href=\"https:\/\/www.devopsschool.com\/blog\/category\/cloud-computing\/aws\/\">More AWS tutorials<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>This tutorial uses a HashiCorp Packer HCL2 template to build a custom Amazon Machine Image (AMI). The template starts from Ubuntu 22.04 in the ap-south-1 (Mumbai) region&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[26145,5633],"tags":[3354,5495],"class_list":["post-32473","post","type-post","status-publish","format-standard","hentry","category-infrastructure-as-code","category-aws","tag-amazon-ec2","tag-packer"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/32473","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=32473"}],"version-history":[{"count":3,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/32473\/revisions"}],"predecessor-version":[{"id":80463,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/32473\/revisions\/80463"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=32473"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=32473"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=32473"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}