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
26e374fb
Commit
26e374fb
authored
Aug 08, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
website: document the new createtime stuff
parent
94efe2c5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
47 deletions
+11
-47
website/source/docs/builders/amazon-chroot.html.markdown
website/source/docs/builders/amazon-chroot.html.markdown
+3
-15
website/source/docs/builders/amazon-ebs.html.markdown
website/source/docs/builders/amazon-ebs.html.markdown
+4
-16
website/source/docs/builders/amazon-instance.html.markdown
website/source/docs/builders/amazon-instance.html.markdown
+4
-16
No files found.
website/source/docs/builders/amazon-chroot.html.markdown
View file @
26e374fb
...
...
@@ -62,8 +62,8 @@ Required:
*
`ami_name`
(string) - The name of the resulting AMI that will appear
when managing AMIs in the AWS console or via APIs. This must be unique.
To help make this unique,
certain template parameters are available for
this value, which are documented below.
To help make this unique,
use a function like
`timestamp`
(see
[
configuration templates
](
/docs/templates/configuration-templates.html
)
for more info)
*
`secret_key`
(string) - The secret key used to communicate with AWS.
If not specified, Packer will attempt to read this from environmental
...
...
@@ -115,22 +115,10 @@ Here is a basic example. It is completely valid except for the access keys:
"access_key": "YOUR KEY HERE",
"secret_key": "YOUR SECRET KEY HERE",
"source_ami": "ami-e81d5881",
"ami_name": "packer-amazon-chroot {{
.CreateTime
}}"
"ami_name": "packer-amazon-chroot {{
timestamp
}}"
}
</pre>
## AMI Name Variables
The AMI name specified by the
`ami_name`
configuration variable is actually
treated as a
[
configuration template
](
/docs/templates/configuration-templates.html
)
.
Packer provides a set of variables that it will replace
within the AMI name. This helps ensure the AMI name is unique, as AWS requires.
The available variables are shown below:
*
`CreateTime`
- This will be replaced with the Unix timestamp of when
the AMI was built.
## Chroot Mounts
The
`chroot_mounts`
configuration can be used to mount additional devices
...
...
website/source/docs/builders/amazon-ebs.html.markdown
View file @
26e374fb
...
...
@@ -37,8 +37,8 @@ Required:
*
`ami_name`
(string) - The name of the resulting AMI that will appear
when managing AMIs in the AWS console or via APIs. This must be unique.
To help make this unique,
certain template parameters are available for
this value, which are documented below.
To help make this unique,
use a function like
`timestamp`
(see
[
configuration templates
](
/docs/templates/configuration-templates.html
)
for more info)
*
`instance_type`
(string) - The EC2 instance type to use while building
the AMI, such as "m1.small".
...
...
@@ -96,7 +96,7 @@ Here is a basic example. It is completely valid except for the access keys:
"source_ami": "ami-de0d9eb7",
"instance_type": "t1.micro",
"ssh_username": "ubuntu",
"ami_name": "packer-quick-start {{
.CreateTime
}}",
"ami_name": "packer-quick-start {{
timestamp
}}",
}
</pre>
...
...
@@ -121,22 +121,10 @@ Here is an example using the optional AMI tags. This will add the tags
"source_ami": "ami-de0d9eb7",
"instance_type": "t1.micro",
"ssh_username": "ubuntu",
"ami_name": "packer-quick-start {{
.CreateTime
}}",
"ami_name": "packer-quick-start {{
timestamp
}}",
"tags": {
"OS_Version": "Ubuntu",
"Release": "Latest"
}
}
</pre>
## AMI Name Variables
The AMI name specified by the
`ami_name`
configuration variable is actually
treated as a
[
configuration template
](
/docs/templates/configuration-templates.html
)
.
Packer provides a set of variables that it will replace
within the AMI name. This helps ensure the AMI name is unique, as AWS requires.
The available variables are shown below:
*
`CreateTime`
- This will be replaced with the Unix timestamp of when
the AMI was built.
website/source/docs/builders/amazon-instance.html.markdown
View file @
26e374fb
...
...
@@ -41,8 +41,8 @@ Required:
*
`ami_name`
(string) - The name of the resulting AMI that will appear
when managing AMIs in the AWS console or via APIs. This must be unique.
To help make this unique,
certain template parameters are available for
this value, which are documented below.
To help make this unique,
use a function like
`timestamp`
(see
[
configuration templates
](
/docs/templates/configuration-templates.html
)
for more info)
*
`instance_type`
(string) - The EC2 instance type to use while building
the AMI, such as "m1.small".
...
...
@@ -78,7 +78,7 @@ Optional:
"/tmp". This directory must exist and be writable.
*
`bundle_prefix`
(string) - The prefix for files created from bundling
the root volume. By default this is "image-{{
.Createtime}}". The
`CreateTime
`
the root volume. By default this is "image-{{
timestamp}}". The
`timestamp
`
variable should be used to make sure this is unique, otherwise it can
collide with other created AMIs by Packer in your account.
...
...
@@ -140,7 +140,7 @@ Here is a basic example. It is completely valid except for the access keys:
"x509_key_path": "x509.key",
"x509_upload_path": "/tmp",
"ami_name": "packer-quick-start {{
.CreateTime
}}"
"ami_name": "packer-quick-start {{
timestamp
}}"
}
</pre>
...
...
@@ -151,18 +151,6 @@ the section above for more information on what environmental variables Packer
will look for.
</div>
## AMI Name Variables
The AMI name specified by the
`ami_name`
configuration variable is actually
treated as a
[
configuration template
](
/docs/templates/configuration-templates.html
)
.
Packer provides a set of variables that it will replace
within the AMI name. This helps ensure the AMI name is unique, as AWS requires.
The available variables are shown below:
*
`CreateTime`
- This will be replaced with the Unix timestamp of when
the AMI was built.
## Custom Bundle Commands
A lot of the process required for creating an instance-store backed AMI
...
...
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