17
jdub/packer-resource docker image 镜像
source link: https://hub.docker.com/r/jdub/packer-resource
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
docker pull jdub/packer-resource
# Packer Build Resource
A Concourse CI resource to build new Amazon Machine Images (AMI) via Packer
Source Configuration
-
aws_access_key_id
: Your AWS access key ID. -
aws_secret_access_key
: Your AWS secret access key. -
region
: Required. The AWS region to search for AMIs.
If aws_access_key_id
and aws_secret_access_key
are not provided packer will use credentials provided by the worker's IAM profile, if it has one.
Behaviour
out
: Build a new AMI
Parameters
template
: Required. The path to the packer template.var_file
: Required. The path or list of paths to a external JSON variable file.
All other parameters will be passed through to packer as variables.
Example
resource_types:
- name: packer
type: docker-image
source:
repository: jdub/packer-resource
resources:
- name: build-ami
type: packer
source:
aws_access_key_id: "..."
aws_secret_access_key: "..."
region: ap-southeast-2
jobs:
- name: my-ami
plan:
- put: build-ami
params:
template: packer_template.json
var_file:
- secrets.json
- foo.json
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK