Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
f6457ed1
Commit
f6457ed1
authored
Aug 06, 2013
by
Mark Peek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
website: cleanup Amazon AMI tag documentation
parent
8a636519
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
6 deletions
+26
-6
website/source/docs/builders/amazon-ebs.html.markdown
website/source/docs/builders/amazon-ebs.html.markdown
+24
-6
website/source/docs/builders/amazon-instance.html.markdown
website/source/docs/builders/amazon-instance.html.markdown
+2
-0
No files found.
website/source/docs/builders/amazon-ebs.html.markdown
View file @
f6457ed1
...
...
@@ -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
...
...
website/source/docs/builders/amazon-instance.html.markdown
View file @
f6457ed1
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment