This commit is contained in:
Matthew Hooker 2018-10-16 14:18:40 -07:00
parent bf7c4a7ad6
commit 8598e2d0a3
No known key found for this signature in database
GPG Key ID: 7B5F933D9CE8C6A1
3 changed files with 4 additions and 2 deletions

View File

@ -37,7 +37,7 @@ func (s *stepAttachVolume) Run(_ context.Context, state multistep.StateBag) mult
state.Put(s.instanceInfoKey+"/attachment", sa)
ui.Message("Volume to master attached to builder instance")
ui.Message("Volume attached to instance.")
return multistep.ActionContinue
}

View File

@ -47,7 +47,7 @@ func (s *stepCreatePVBuilder) Run(_ context.Context, state multistep.StateBag) m
ImageList: config.SourceImageList,
Attributes: config.attribs,
SSHKeys: []string{config.Comm.SSHKeyPairName},
//Entry: 5,
Entry: 5,
}
instanceInfo, err := instanceClient.CreateInstance(input)

View File

@ -169,6 +169,8 @@ func (i *InstanceInfo) getInstanceName() string {
}
type CreateInstanceInput struct {
// Optional ImageListEntry number. Default will be used if not specified
Entry int `json:"entry,omitempty"`
// A dictionary of user-defined attributes to be made available to the instance.
// Optional
Attributes map[string]interface{} `json:"attributes"`