website: cleanup Amazon AMI tag documentation

This commit is contained in:
Mark Peek 2013-08-06 15:16:39 -07:00
parent 8a636519f8
commit f6457ed189
2 changed files with 26 additions and 6 deletions

View File

@ -78,11 +78,11 @@ Optional:
* `subnet_id` (string) - If using VPC, the ID of the subnet, such as
"subnet-12345def", where Packer will launch the EC2 instance.
* `tags` (object of key/value strings) - Tags applied to the AMI.
* `vpc_id` (string) - If launching into a VPC subnet, Packer needs the
VPC ID in order to create a temporary security group within the VPC.
* `tags` (array of key/value pairs) - Tags applied to the AMI.
## Basic Example
Here is a basic example. It is completely valid except for the access keys:
@ -97,10 +97,6 @@ Here is a basic example. It is completely valid except for the access keys:
"instance_type": "t1.micro",
"ssh_username": "ubuntu",
"ami_name": "packer-quick-start {{.CreateTime}}",
"tags": {
"myTagName1": "myTagValue1",
"myTagName2": "myTagValue2"
}
}
</pre>
@ -111,6 +107,28 @@ the section above for more information on what environmental variables Packer
will look for.
</div>
## Tag Example
Here is an example using the optional AMI tags. This will add the tags
"OS_Version" and "Release" to the finished AMI.
<pre class="prettyprint">
{
"type": "amazon-ebs",
"access_key": "YOUR KEY HERE",
"secret_key": "YOUR SECRET KEY HERE",
"region": "us-east-1",
"source_ami": "ami-de0d9eb7",
"instance_type": "t1.micro",
"ssh_username": "ubuntu",
"ami_name": "packer-quick-start {{.CreateTime}}",
"tags": {
"OS_Version": "Ubuntu",
"Release": "Latest"
}
}
</pre>
## AMI Name Variables
The AMI name specified by the `ami_name` configuration variable is actually

View File

@ -109,6 +109,8 @@ Optional:
* `subnet_id` (string) - If using VPC, the ID of the subnet, such as
"subnet-12345def", where Packer will launch the EC2 instance.
* `tags` (object of key/value strings) - Tags applied to the AMI.
* `vpc_id` (string) - If launching into a VPC subnet, Packer needs the
VPC ID in order to create a temporary security group within the VPC.