From 1d066082a5fa13ac30ac0b549bfd3a9750d0a319 Mon Sep 17 00:00:00 2001 From: Adrien Delorme Date: Thu, 19 Dec 2019 15:28:29 +0100 Subject: [PATCH] Update index.html.md.erb --- website/source/guides/hcl/index.html.md.erb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/website/source/guides/hcl/index.html.md.erb b/website/source/guides/hcl/index.html.md.erb index 711cf6597..802954164 100644 --- a/website/source/guides/hcl/index.html.md.erb +++ b/website/source/guides/hcl/index.html.md.erb @@ -54,17 +54,17 @@ EOF ## Building blocks can be split in files Currently Packer offers the `source` and the `build` root blocks. These two -building blocks can be defined in any order an a `build` can import one or more +building blocks can be defined in any order and a `build` can import one or more `source`. Usually a `source` defines what we currently call a builder and a `build` can apply multiple provisioning steps to a source. For example: ```hcl # folder/sources.pkr.hcl -sources "amazon-ebs" "example-1" { +source "amazon-ebs" "example-1" { ami_name = "example-1-ami" } -sources "amazon-ebs" "example-2" { +source "amazon-ebs" "example-2" { ami_name = "example-2-ami" } ``` @@ -73,8 +73,8 @@ sources "amazon-ebs" "example-2" { # folder/build.pkr.hcl build { sources = [ - "sources.amazon-ebs.example-1", - "sources.amazon-ebs.example-2" + "source.amazon-ebs.example-1", + "source.amazon-ebs.example-2" ] provisioner "shell" {