packer-builder-amazon-scratch

command module
v0.0.0-...-77b0151 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2015 License: MIT Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

packer-builder-amazon-scratch

What's this?

Packer builder plugin that allows to AMI from empty volume.

{
  "type": "amazon-scratch",
  "region": "ap-northeast-1",
  "source_ami": "ami-936d9d93",
  "subnet_id": "subnet-XXX",
  "associate_public_ip_address": true,
  "instance_type": "t2.micro",
  "ssh_username": "ubuntu",
  "ami_name": "packer {{timestamp}}",
  "worker_device_name": "/dev/sdf",
  "volume_size": 4,
  "volume_type": "gp2"
}

this will starts instance with 4GB gp2 EBS, using ami-936d9d93. Then provision your stuff on /dev/sdf.

Finally /dev/sdf will be used as root block device on new AMI.

Difference with amazon-chroot

  • amazon-chroot doesn't allow do something on host machine -- it runs all commands in chrooted environment.
  • amazon-chroot requires run packer on an existing EC2 instance, but this doesn't.
  • this launches source_ami to create AMI, each time.
  • this creates empty EBS. amazon-chroot always requires source AMI as base.

Author

sorah

License

MIT License

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
builder

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL