diff --git a/builder/alicloud/ecs/builder.go b/builder/alicloud/ecs/builder.go index 8650dc2d1..5f7973723 100644 --- a/builder/alicloud/ecs/builder.go +++ b/builder/alicloud/ecs/builder.go @@ -6,6 +6,7 @@ import ( "log" "fmt" + "github.com/hashicorp/packer/common" "github.com/hashicorp/packer/helper/communicator" "github.com/hashicorp/packer/helper/config" @@ -146,9 +147,9 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe }) } steps = append(steps, + &stepAttachKeyPar{}, &stepRunAlicloudInstance{}, &stepMountAlicloudDisk{}, - &stepAttachKeyPar{}, &communicator.StepConnect{ Config: &b.config.RunConfig.Comm, Host: SSHHost(