v0.12.3 Latest Latest

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

Go to latest
Published: Mar 2, 2017 License: MPL-2.0 Imports: 15 Imported by: 0



The instance package contains a packer.Builder implementation that builds AMIs for Amazon EC2 backed by instance storage, as opposed to EBS storage.



View Source
const BuilderId = ""

The unique ID for this builder


This section is empty.


This section is empty.


type Builder

type Builder struct {
	// contains filtered or unexported fields

func (*Builder) Cancel

func (b *Builder) Cancel()

func (*Builder) Prepare

func (b *Builder) Prepare(raws ...interface{}) ([]string, error)

func (*Builder) Run

func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packer.Artifact, error)

type Config

type Config struct {
	common.PackerConfig    `mapstructure:",squash"`
	awscommon.AccessConfig `mapstructure:",squash"`
	awscommon.AMIConfig    `mapstructure:",squash"`
	awscommon.BlockDevices `mapstructure:",squash"`
	awscommon.RunConfig    `mapstructure:",squash"`

	AccountId           string `mapstructure:"account_id"`
	BundleDestination   string `mapstructure:"bundle_destination"`
	BundlePrefix        string `mapstructure:"bundle_prefix"`
	BundleUploadCommand string `mapstructure:"bundle_upload_command"`
	BundleVolCommand    string `mapstructure:"bundle_vol_command"`
	S3Bucket            string `mapstructure:"s3_bucket"`
	X509CertPath        string `mapstructure:"x509_cert_path"`
	X509KeyPath         string `mapstructure:"x509_key_path"`
	X509UploadPath      string `mapstructure:"x509_upload_path"`
	// contains filtered or unexported fields

Config is the configuration that is chained through the steps and settable from the template.

type StepBundleVolume

type StepBundleVolume struct {
	Debug bool

func (*StepBundleVolume) Cleanup

func (s *StepBundleVolume) Cleanup(multistep.StateBag)

func (*StepBundleVolume) Run

type StepRegisterAMI

type StepRegisterAMI struct{}

func (*StepRegisterAMI) Cleanup

func (s *StepRegisterAMI) Cleanup(multistep.StateBag)

func (*StepRegisterAMI) Run

type StepUploadBundle

type StepUploadBundle struct {
	Debug bool

func (*StepUploadBundle) Cleanup

func (s *StepUploadBundle) Cleanup(state multistep.StateBag)

func (*StepUploadBundle) Run

type StepUploadX509Cert

type StepUploadX509Cert struct{}

func (*StepUploadX509Cert) Cleanup

func (*StepUploadX509Cert) Run

Jump to

Keyboard shortcuts

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