|
|
|
|
@ -18,7 +18,7 @@ type stepAttachKeyPair struct {
|
|
|
|
|
func (s *stepAttachKeyPair) Run(_ context.Context, state multistep.StateBag) multistep.StepAction {
|
|
|
|
|
ui := state.Get("ui").(packer.Ui)
|
|
|
|
|
client := state.Get("client").(*ecs.Client)
|
|
|
|
|
config := state.Get("config").(Config)
|
|
|
|
|
config := state.Get("config").(*Config)
|
|
|
|
|
instance := state.Get("instance").(*ecs.InstanceAttributesType)
|
|
|
|
|
timeoutPoint := time.Now().Add(120 * time.Second)
|
|
|
|
|
keyPairName := config.Comm.SSHKeyPairName
|
|
|
|
|
@ -52,7 +52,7 @@ func (s *stepAttachKeyPair) Run(_ context.Context, state multistep.StateBag) mul
|
|
|
|
|
|
|
|
|
|
func (s *stepAttachKeyPair) Cleanup(state multistep.StateBag) {
|
|
|
|
|
client := state.Get("client").(*ecs.Client)
|
|
|
|
|
config := state.Get("config").(Config)
|
|
|
|
|
config := state.Get("config").(*Config)
|
|
|
|
|
ui := state.Get("ui").(packer.Ui)
|
|
|
|
|
instance := state.Get("instance").(*ecs.InstanceAttributesType)
|
|
|
|
|
keyPairName := config.Comm.SSHKeyPairName
|
|
|
|
|
|