From faa7bc0dc1abe06692f44efe5b5876ed22685200 Mon Sep 17 00:00:00 2001 From: Megan Marsh Date: Mon, 20 Jul 2020 17:57:52 -0700 Subject: [PATCH] Update website/pages/docs/builders/amazon/ebs.mdx Co-authored-by: Adrien Delorme --- website/pages/docs/builders/amazon/ebs.mdx | 30 +++++++++++----------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/website/pages/docs/builders/amazon/ebs.mdx b/website/pages/docs/builders/amazon/ebs.mdx index 09d308694..237bdc5c2 100644 --- a/website/pages/docs/builders/amazon/ebs.mdx +++ b/website/pages/docs/builders/amazon/ebs.mdx @@ -248,27 +248,27 @@ configuration of `launch_block_device_mappings` will expand the root volume ```hcl source "amazon-ebs" "basic-example" { - region = "us-east-1" - source_ami = "ami-fce3c696" + region = "us-east-1" + source_ami = "ami-fce3c696" instance_type = "t2.micro" - ssh_username = "ubuntu" - ami_name = "packer_AWS_example_{{timestamp}}" + ssh_username = "ubuntu" + ami_name = "packer_AWS_example_{{timestamp}}" launch_block_device_mappings { - device_name = "/dev/sda1" - volume_size = 40 - volume_type = "gp2" - delete_on_termination = true - } + device_name = "/dev/sda1" + volume_size = 40 + volume_type = "gp2" + delete_on_termination = true + } // Notice that instead of providing a list of mappings, you are just providing // multiple mappings in a row. This diverges from the JSON template format. ami_block_device_mappings { - device_name = "/dev/sdb" - virtual_name = "ephemeral0" - } + device_name = "/dev/sdb" + virtual_name = "ephemeral0" + } ami_block_device_mappings { - device_name = "/dev/sdc" - virtual_name = "ephemeral1" - } + device_name = "/dev/sdc" + virtual_name = "ephemeral1" + } } build {