Fix last example syntax

This commit is contained in:
Gabriel Sobrinho 2015-07-31 00:01:00 -03:00
parent 84abbc2fe2
commit 015742b547
1 changed files with 13 additions and 1 deletions

View File

@ -90,7 +90,19 @@ it's even better to store and version the AMI output so it can be easily
deployed by a tool like [Terraform](https://terraform.io). The `atlas` deployed by a tool like [Terraform](https://terraform.io). The `atlas`
[post-processor](/docs/post-processors/atlas.html) makes this process simple: [post-processor](/docs/post-processors/atlas.html) makes this process simple:
`javascript { "variables": ["..."], "builders": ["..."], "provisioners": ["..."], "push": ["..."], "post-processors": [ { "type": "atlas", "artifact": "ATLAS_USERNAME/packer-tutorial", "artifact_type": "amazon.ami" } ] }` ``` {.javascript}
{
"variables": ["..."],
"builders": ["..."],
"provisioners": ["..."],
"push": ["..."],
"post-processors": [{
"type": "atlas",
"artifact": "ATLAS_USERNAME/packer-tutorial",
"artifact_type": "amazon.ami"
}]
}
```
Update the `post-processors` block with your Atlas username, then Update the `post-processors` block with your Atlas username, then
`packer push example.json` and watch the build kick off in Atlas! When the build `packer push example.json` and watch the build kick off in Atlas! When the build