Versions in this module Expand all Collapse all v1 v1.3.2 Oct 29, 2018 Changes in this version + var TemplateFuncs = template.FuncMap + func DecodeAuthZMessages(sess *session.Session) + func SSHHost(e ec2Describer, sshInterface string) func(multistep.StateBag) (string, error) + func WaitForImageToBeImported(c *ec2.EC2, ctx aws.Context, input *ec2.DescribeImportImageTasksInput, ...) error + func WaitForVolumeToBeAttached(c *ec2.EC2, ctx aws.Context, input *ec2.DescribeVolumesInput, ...) error + func WaitForVolumeToBeDetached(c *ec2.EC2, ctx aws.Context, input *ec2.DescribeVolumesInput, ...) error + func WaitUntilAMIAvailable(ctx aws.Context, conn *ec2.EC2, imageId string) error + func WaitUntilImageImported(ctx aws.Context, conn *ec2.EC2, taskID string) error + func WaitUntilInstanceTerminated(ctx aws.Context, conn *ec2.EC2, instanceId string) error + func WaitUntilSnapshotDone(ctx aws.Context, conn *ec2.EC2, snapshotID string) error + func WaitUntilSpotRequestFulfilled(ctx aws.Context, conn *ec2.EC2, spotRequestId string) error + func WaitUntilVolumeAttached(ctx aws.Context, conn *ec2.EC2, volumeId string) error + func WaitUntilVolumeAvailable(ctx aws.Context, conn *ec2.EC2, volumeId string) error + func WaitUntilVolumeDetached(ctx aws.Context, conn *ec2.EC2, volumeId string) error + type AMIBlockDevices struct + AMIMappings []BlockDevice + func (b *AMIBlockDevices) BuildAMIDevices() []*ec2.BlockDeviceMapping + type AMIConfig struct + AMIDescription string + AMIENASupport *bool + AMIEncryptBootVolume bool + AMIForceDeleteSnapshot bool + AMIForceDeregister bool + AMIGroups []string + AMIKmsKeyId string + AMIName string + AMIProductCodes []string + AMIRegionKMSKeyIDs map[string]string + AMIRegions []string + AMISkipRegionValidation bool + AMISriovNetSupport bool + AMITags TagMap + AMIUsers []string + AMIVirtType string + SnapshotGroups []string + SnapshotTags TagMap + SnapshotUsers []string + func (c *AMIConfig) Prepare(accessConfig *AccessConfig, ctx *interpolate.Context) []error + type AccessConfig struct + AccessKey string + CustomEndpointEc2 string + DecodeAuthZMessages bool + MFACode string + ProfileName string + RawRegion string + SecretKey string + SkipMetadataApiCheck bool + SkipValidation bool + Token string + func (c *AccessConfig) IsChinaCloud() bool + func (c *AccessConfig) IsGovCloud() bool + func (c *AccessConfig) NewEC2Connection() (ec2iface.EC2API, error) + func (c *AccessConfig) Prepare(ctx *interpolate.Context) []error + func (c *AccessConfig) Session() (*session.Session, error) + func (c *AccessConfig) SessionRegion() string + func (c *AccessConfig) ValidateRegion(regions ...string) error + type AmiFilterOptions struct + Filters map[*string]*string + MostRecent bool + Owners []*string + func (d *AmiFilterOptions) Empty() bool + func (d *AmiFilterOptions) NoOwner() bool + type Artifact struct + Amis map[string]string + BuilderIdValue string + Session *session.Session + func (*Artifact) Files() []string + func (a *Artifact) BuilderId() string + func (a *Artifact) Destroy() error + func (a *Artifact) Id() string + func (a *Artifact) State(name string) interface{} + func (a *Artifact) String() string + type BlockDevice struct + DeleteOnTermination bool + DeviceName string + Encrypted bool + IOPS int64 + KmsKeyId string + NoDevice bool + SnapshotId string + VirtualName string + VolumeSize int64 + VolumeType string + func (b *BlockDevice) Prepare(ctx *interpolate.Context) error + type BlockDevices struct + func (b *BlockDevices) Prepare(ctx *interpolate.Context) (errs []error) + type BuildInfoTemplate struct + BuildRegion string + SourceAMI string + SourceAMIName string + SourceAMITags map[string]string + type EC2Tags []*ec2.Tag + func (t EC2Tags) Report(ui packer.Ui) + type LaunchBlockDevices struct + LaunchMappings []BlockDevice + func (b *LaunchBlockDevices) BuildLaunchDevices() []*ec2.BlockDeviceMapping + type RunConfig struct + AssociatePublicIpAddress bool + AvailabilityZone string + BlockDurationMinutes int64 + Comm communicator.Config + DisableStopInstance bool + EbsOptimized bool + EnableT2Unlimited bool + IamInstanceProfile string + InstanceInitiatedShutdownBehavior string + InstanceType string + RunTags map[string]string + SecurityGroupFilter SecurityGroupFilterOptions + SecurityGroupId string + SecurityGroupIds []string + SourceAmi string + SourceAmiFilter AmiFilterOptions + SpotPrice string + SpotPriceAutoProduct string + SpotTags map[string]string + SubnetFilter SubnetFilterOptions + SubnetId string + TemporaryKeyPairName string + TemporarySGSourceCidr string + UserData string + UserDataFile string + VpcFilter VpcFilterOptions + VpcId string + WindowsPasswordTimeout time.Duration + func (c *RunConfig) IsSpotInstance() bool + func (c *RunConfig) Prepare(ctx *interpolate.Context) []error + type SecurityGroupFilterOptions struct + Filters map[*string]*string + func (d *SecurityGroupFilterOptions) Empty() bool + type StateChangeConf struct + Pending []string + Refresh StateRefreshFunc + StepState multistep.StateBag + Target string + type StateRefreshFunc func() (result interface{}, state string, err error) + type StepAMIRegionCopy struct + AccessConfig *AccessConfig + EncryptBootVolume bool + Name string + RegionKeyIds map[string]string + Regions []string + func (s *StepAMIRegionCopy) Cleanup(state multistep.StateBag) + func (s *StepAMIRegionCopy) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction + type StepCleanupVolumes struct + BlockDevices BlockDevices + func (s *StepCleanupVolumes) Cleanup(state multistep.StateBag) + func (s *StepCleanupVolumes) Run(_ context.Context, state multistep.StateBag) multistep.StepAction + type StepCreateEncryptedAMICopy struct + AMIMappings []BlockDevice + EncryptBootVolume bool + KeyID string + Name string + func (s *StepCreateEncryptedAMICopy) Cleanup(state multistep.StateBag) + func (s *StepCreateEncryptedAMICopy) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction + type StepCreateTags struct + Ctx interpolate.Context + SnapshotTags TagMap + Tags TagMap + func (s *StepCreateTags) Cleanup(state multistep.StateBag) + func (s *StepCreateTags) Run(_ context.Context, state multistep.StateBag) multistep.StepAction + type StepDeregisterAMI struct + AMIName string + AccessConfig *AccessConfig + ForceDeleteSnapshot bool + ForceDeregister bool + Regions []string + func (s *StepDeregisterAMI) Cleanup(state multistep.StateBag) + func (s *StepDeregisterAMI) Run(_ context.Context, state multistep.StateBag) multistep.StepAction + type StepGetPassword struct + BuildName string + Comm *communicator.Config + Debug bool + Timeout time.Duration + func (s *StepGetPassword) Cleanup(multistep.StateBag) + func (s *StepGetPassword) Run(_ context.Context, state multistep.StateBag) multistep.StepAction + type StepKeyPair struct + Comm *communicator.Config + Debug bool + DebugKeyPath string + func (s *StepKeyPair) Cleanup(state multistep.StateBag) + func (s *StepKeyPair) Run(_ context.Context, state multistep.StateBag) multistep.StepAction + type StepModifyAMIAttributes struct + Ctx interpolate.Context + Description string + Groups []string + ProductCodes []string + SnapshotGroups []string + SnapshotUsers []string + Users []string + func (s *StepModifyAMIAttributes) Cleanup(state multistep.StateBag) + func (s *StepModifyAMIAttributes) Run(_ context.Context, state multistep.StateBag) multistep.StepAction + type StepModifyEBSBackedInstance struct + EnableAMIENASupport *bool + EnableAMISriovNetSupport bool + func (s *StepModifyEBSBackedInstance) Cleanup(state multistep.StateBag) + func (s *StepModifyEBSBackedInstance) Run(_ context.Context, state multistep.StateBag) multistep.StepAction + type StepNetworkInfo struct + AvailabilityZone string + SecurityGroupFilter SecurityGroupFilterOptions + SecurityGroupIds []string + SubnetFilter SubnetFilterOptions + SubnetId string + VpcFilter VpcFilterOptions + VpcId string + func (s *StepNetworkInfo) Cleanup(multistep.StateBag) + func (s *StepNetworkInfo) Run(_ context.Context, state multistep.StateBag) multistep.StepAction + type StepPreValidate struct + DestAmiName string + ForceDeregister bool + func (s *StepPreValidate) Cleanup(multistep.StateBag) + func (s *StepPreValidate) Run(_ context.Context, state multistep.StateBag) multistep.StepAction + type StepRunSourceInstance struct + AssociatePublicIpAddress bool + BlockDevices BlockDevices + Comm *communicator.Config + Ctx interpolate.Context + Debug bool + EbsOptimized bool + EnableT2Unlimited bool + ExpectedRootDevice string + IamInstanceProfile string + InstanceInitiatedShutdownBehavior string + InstanceType string + IsRestricted bool + SourceAMI string + Tags TagMap + UserData string + UserDataFile string + VolumeTags TagMap + func (s *StepRunSourceInstance) Cleanup(state multistep.StateBag) + func (s *StepRunSourceInstance) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction + type StepRunSpotInstance struct + AssociatePublicIpAddress bool + BlockDevices BlockDevices + BlockDurationMinutes int64 + Comm *communicator.Config + Ctx interpolate.Context + Debug bool + EbsOptimized bool + ExpectedRootDevice string + IamInstanceProfile string + InstanceInitiatedShutdownBehavior string + InstanceType string + SourceAMI string + SpotPrice string + SpotPriceProduct string + SpotTags TagMap + Tags TagMap + UserData string + UserDataFile string + VolumeTags TagMap + func (s *StepRunSpotInstance) Cleanup(state multistep.StateBag) + func (s *StepRunSpotInstance) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction + type StepSecurityGroup struct + CommConfig *communicator.Config + SecurityGroupFilter SecurityGroupFilterOptions + SecurityGroupIds []string + TemporarySGSourceCidr string + func (s *StepSecurityGroup) Cleanup(state multistep.StateBag) + func (s *StepSecurityGroup) Run(_ context.Context, state multistep.StateBag) multistep.StepAction + type StepSourceAMIInfo struct + AMIVirtType string + AmiFilters AmiFilterOptions + EnableAMIENASupport *bool + EnableAMISriovNetSupport bool + SourceAmi string + func (s *StepSourceAMIInfo) Cleanup(multistep.StateBag) + func (s *StepSourceAMIInfo) Run(_ context.Context, state multistep.StateBag) multistep.StepAction + type StepStopEBSBackedInstance struct + DisableStopInstance bool + Skip bool + func (s *StepStopEBSBackedInstance) Cleanup(multistep.StateBag) + func (s *StepStopEBSBackedInstance) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction + type SubnetFilterOptions struct + Filters map[*string]*string + MostFree bool + Random bool + func (d *SubnetFilterOptions) Empty() bool + type TagMap map[string]string + func (t TagMap) EC2Tags(ctx interpolate.Context, region string, state multistep.StateBag) (EC2Tags, error) + func (t TagMap) IsSet() bool + type VpcFilterOptions struct + Filters map[*string]*string + func (d *VpcFilterOptions) Empty() bool