Skip to content

Instantly share code, notes, and snippets.

@guessi
Last active January 11, 2018 03:04
Show Gist options
  • Save guessi/8d1381d93289214d89b43d410dfa6529 to your computer and use it in GitHub Desktop.
Save guessi/8d1381d93289214d89b43d410dfa6529 to your computer and use it in GitHub Desktop.
$ PACKER_LOG=1 AWS_ACCESS_KEY_ID=AKIAxxxxxx AWS_SECRET_ACCESS_KEY=XXXXXX packer build packer.json
2018/01/11 10:45:40 [INFO] Packer version: 1.1.3
2018/01/11 10:45:40 Packer Target OS/Arch: darwin amd64
2018/01/11 10:45:40 Built with Go Version: go1.9.2
2018/01/11 10:45:40 Detected home directory from env var: /Users/user_name
2018/01/11 10:45:40 Using internal plugin for lxd
2018/01/11 10:45:40 Using internal plugin for parallels-pvm
2018/01/11 10:45:40 Using internal plugin for virtualbox-iso
2018/01/11 10:45:40 Using internal plugin for vmware-vmx
2018/01/11 10:45:40 Using internal plugin for alicloud-ecs
2018/01/11 10:45:40 Using internal plugin for amazon-instance
2018/01/11 10:45:40 Using internal plugin for file
2018/01/11 10:45:40 Using internal plugin for lxc
2018/01/11 10:45:40 Using internal plugin for amazon-chroot
2018/01/11 10:45:40 Using internal plugin for amazon-ebssurrogate
2018/01/11 10:45:40 Using internal plugin for hyperv-iso
2018/01/11 10:45:40 Using internal plugin for cloudstack
2018/01/11 10:45:40 Using internal plugin for qemu
2018/01/11 10:45:40 Using internal plugin for vmware-iso
2018/01/11 10:45:40 Using internal plugin for azure-arm
2018/01/11 10:45:40 Using internal plugin for googlecompute
2018/01/11 10:45:40 Using internal plugin for parallels-iso
2018/01/11 10:45:40 Using internal plugin for virtualbox-ovf
2018/01/11 10:45:40 Using internal plugin for null
2018/01/11 10:45:40 Using internal plugin for oneandone
2018/01/11 10:45:40 Using internal plugin for oracle-oci
2018/01/11 10:45:40 Using internal plugin for amazon-ebs
2018/01/11 10:45:40 Using internal plugin for amazon-ebsvolume
2018/01/11 10:45:40 Using internal plugin for digitalocean
2018/01/11 10:45:40 Using internal plugin for profitbricks
2018/01/11 10:45:40 Using internal plugin for docker
2018/01/11 10:45:40 Using internal plugin for hyperv-vmcx
2018/01/11 10:45:40 Using internal plugin for openstack
2018/01/11 10:45:40 Using internal plugin for triton
2018/01/11 10:45:40 Using internal plugin for shell
2018/01/11 10:45:40 Using internal plugin for chef-client
2018/01/11 10:45:40 Using internal plugin for converge
2018/01/11 10:45:40 Using internal plugin for file
2018/01/11 10:45:40 Using internal plugin for ansible
2018/01/11 10:45:40 Using internal plugin for chef-solo
2018/01/11 10:45:40 Using internal plugin for powershell
2018/01/11 10:45:40 Using internal plugin for puppet-masterless
2018/01/11 10:45:40 Using internal plugin for salt-masterless
2018/01/11 10:45:40 Using internal plugin for windows-shell
2018/01/11 10:45:40 Using internal plugin for ansible-local
2018/01/11 10:45:40 Using internal plugin for puppet-server
2018/01/11 10:45:40 Using internal plugin for shell-local
2018/01/11 10:45:40 Using internal plugin for windows-restart
2018/01/11 10:45:40 Using internal plugin for docker-save
2018/01/11 10:45:40 Using internal plugin for vagrant
2018/01/11 10:45:40 Using internal plugin for amazon-import
2018/01/11 10:45:40 Using internal plugin for docker-push
2018/01/11 10:45:40 Using internal plugin for compress
2018/01/11 10:45:40 Using internal plugin for googlecompute-export
2018/01/11 10:45:40 Using internal plugin for manifest
2018/01/11 10:45:40 Using internal plugin for shell-local
2018/01/11 10:45:40 Using internal plugin for artifice
2018/01/11 10:45:40 Using internal plugin for checksum
2018/01/11 10:45:40 Using internal plugin for vagrant-cloud
2018/01/11 10:45:40 Using internal plugin for atlas
2018/01/11 10:45:40 Using internal plugin for docker-import
2018/01/11 10:45:40 Using internal plugin for vsphere
2018/01/11 10:45:40 Using internal plugin for vsphere-template
2018/01/11 10:45:40 Using internal plugin for alicloud-import
2018/01/11 10:45:40 Using internal plugin for docker-tag
2018/01/11 10:45:40 Detected home directory from env var: /Users/user_name
2018/01/11 10:45:40 Attempting to open config file: /Users/user_name/.packerconfig
2018/01/11 10:45:40 [WARN] Config file doesn't exist: /Users/user_name/.packerconfig
2018/01/11 10:45:40 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[parallels-pvm:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-pvm virtualbox-iso:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-iso lxc:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxc amazon-ebssurrogate:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebssurrogate digitalocean:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-digitalocean docker:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-docker triton:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-triton openstack:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-openstack cloudstack:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-cloudstack oracle-oci:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-oci file:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-file vmware-iso:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-iso azure-arm:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-azure-arm parallels-iso:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-iso lxd:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxd qemu:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-qemu oneandone:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oneandone vmware-vmx:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-vmx alicloud-ecs:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-alicloud-ecs profitbricks:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-profitbricks virtualbox-ovf:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-ovf amazon-ebsvolume:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebsvolume hyperv-vmcx:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-vmcx amazon-instance:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-instance amazon-chroot:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-chroot hyperv-iso:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-iso googlecompute:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-googlecompute null:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-null amazon-ebs:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebs] PostProcessors:map[docker-tag:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-tag docker-save:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-save docker-push:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-push shell-local:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-shell-local docker-import:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-import vsphere-template:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere-template compress:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-compress googlecompute-export:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-googlecompute-export artifice:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-artifice checksum:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-checksum alicloud-import:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-alicloud-import amazon-import:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-amazon-import vagrant:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant manifest:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-manifest vagrant-cloud:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant-cloud atlas:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-atlas vsphere:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere] Provisioners:map[chef-client:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-client ansible:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible salt-masterless:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-salt-masterless shell:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell puppet-masterless:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-masterless shell-local:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell-local windows-restart:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-restart file:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-file chef-solo:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-solo powershell:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-powershell converge:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-converge ansible-local:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible-local puppet-server:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-server windows-shell:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-shell]}
2018/01/11 10:45:40 Detected home directory from env var: /Users/user_name
2018/01/11 10:45:40 Setting cache directory: /Users/user_name/testdir/packer_cache
2018/01/11 10:45:40 Detected home directory from env var: /Users/user_name
2018/01/11 10:45:40 Loading builder: amazon-ebs
2018/01/11 10:45:40 Plugin could not be found. Checking same directory as executable.
2018/01/11 10:45:40 Current exe path: /usr/local/bin/packer
2018/01/11 10:45:40 Creating plugin client for path: /usr/local/bin/packer
2018/01/11 10:45:40 Starting plugin: /usr/local/bin/packer []string{"/usr/local/bin/packer", "plugin", "packer-builder-amazon-ebs"}
2018/01/11 10:45:40 Waiting for RPC address for: /usr/local/bin/packer
2018/01/11 10:45:40 packer: 2018/01/11 10:45:40 [INFO] Packer version: 1.1.3
2018/01/11 10:45:40 packer: 2018/01/11 10:45:40 Packer Target OS/Arch: darwin amd64
2018/01/11 10:45:40 packer: 2018/01/11 10:45:40 Built with Go Version: go1.9.2
2018/01/11 10:45:40 packer: 2018/01/11 10:45:40 Detected home directory from env var: /Users/user_name
2018/01/11 10:45:40 packer: 2018/01/11 10:45:40 Attempting to open config file: /Users/user_name/.packerconfig
2018/01/11 10:45:40 packer: 2018/01/11 10:45:40 [WARN] Config file doesn't exist: /Users/user_name/.packerconfig
2018/01/11 10:45:40 packer: 2018/01/11 10:45:40 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
2018/01/11 10:45:40 packer: 2018/01/11 10:45:40 Detected home directory from env var: /Users/user_name
2018/01/11 10:45:40 packer: 2018/01/11 10:45:40 Setting cache directory: /Users/user_name/testdir/packer_cache
2018/01/11 10:45:40 packer: 2018/01/11 10:45:40 args: []string{"packer-builder-amazon-ebs"}
2018/01/11 10:45:40 packer: 2018/01/11 10:45:40 Plugin minimum port: 10000
2018/01/11 10:45:40 packer: 2018/01/11 10:45:40 Plugin maximum port: 25000
2018/01/11 10:45:40 packer: 2018/01/11 10:45:40 Detected home directory from env var: /Users/user_name
2018/01/11 10:45:40 packer: 2018/01/11 10:45:40 Plugin address: unix /var/folders/69/z8zj9bxx3f38p9bcy057wlg4s7x3y5/T/packer-plugin076013819
2018/01/11 10:45:40 packer: 2018/01/11 10:45:40 Waiting for connection...
2018/01/11 10:45:40 packer: 2018/01/11 10:45:40 Serving a plugin connection...
2018/01/11 10:45:40 ui: amazon-ebs output will be in this color.
2018/01/11 10:45:40 ui:
2018/01/11 10:45:40 Build debug mode: false
2018/01/11 10:45:40 Force build: false
2018/01/11 10:45:40 On error:
2018/01/11 10:45:40 Preparing build: amazon-ebs
amazon-ebs output will be in this color.
2018/01/11 10:45:40 packer: 2018/01/11 10:45:40 Config: {PackerConfig:{PackerBuildName:amazon-ebs PackerBuilderType:amazon-ebs PackerDebug:false PackerForce:false PackerOnError: PackerUserVars:map[]} AccessConfig:{AccessKey: CustomEndpointEc2: MFACode: ProfileName: RawRegion:ap-northeast-1 SecretKey: SkipValidation:false Token: session:<nil>} AMIConfig:{AMIName:Ubuntu_Xenial_Test AMIDescription: AMIVirtType:hvm AMIUsers:[] AMIGroups:[] AMIProductCodes:[] AMIRegions:[] AMISkipRegionValidation:false AMITags:map[] AMIENASupport:false AMISriovNetSupport:false AMIForceDeregister:false AMIForceDeleteSnapshot:false AMIEncryptBootVolume:false AMIKmsKeyId: AMIRegionKMSKeyIDs:map[] SnapshotTags:map[] SnapshotUsers:[] SnapshotGroups:[]} BlockDevices:{AMIBlockDevices:{AMIMappings:[{DeleteOnTermination:true DeviceName:/dev/sda1 Encrypted:false IOPS:0 NoDevice:false SnapshotId: VirtualName: VolumeType:gp2 VolumeSize:8}]} LaunchBlockDevices:{LaunchMappings:[]}} RunConfig:{AssociatePublicIpAddress:true AvailabilityZone: EbsOptimized:false IamInstanceProfile: InstanceType:t2.micro RunTags:map[] SourceAmi:ami-d39a02b5 SourceAmiFilter:{Filters:map[] Owners:[] MostRecent:false} SpotPrice: SpotPriceAutoProduct: DisableStopInstance:false SecurityGroupId: SecurityGroupIds:[] TemporarySGSourceCidr:0.0.0.0/0 SubnetId:subnet-xxxxxxxxx TemporaryKeyPairName:packer_5a56cfd4-3928-9930-bc16-4d746b4ffed5 UserData: UserDataFile: WindowsPasswordTimeout:20m0s VpcId: InstanceInitiatedShutdownBehavior:stop Comm:{Type:ssh SSHHost: SSHPort:22 SSHUsername:ubuntu SSHPassword: SSHPrivateKey: SSHPty:false SSHTimeout:5m0s SSHAgentAuth:false SSHDisableAgentForwarding:false SSHHandshakeAttempts:10 SSHBastionHost: SSHBastionPort:0 SSHBastionAgentAuth:false SSHBastionUsername: SSHBastionPassword: SSHBastionPrivateKey: SSHFileTransferMethod:scp SSHProxyHost: SSHProxyPort:0 SSHProxyUsername: SSHProxyPassword: WinRMUser: WinRMPassword: WinRMHost: WinRMPort:0 WinRMTimeout:0s WinRMUseSSL:false WinRMInsecure:false WinRMUseNTLM:false WinRMTransportDecorator:<nil>} SSHKeyPairName: SSHPrivateIp:false SSHInterface:} VolumeRunTags:map[] ctx:{Data:<nil> Funcs:map[clean_ami_name:0x186cb50] UserVariables:map[] EnableEnv:false BuildName:amazon-ebs BuildType:amazon-ebs TemplatePath:/Users/user_name/testdir/packer.json}}
2018/01/11 10:45:40 Waiting on builds to complete...
2018/01/11 10:45:40 Starting build run: amazon-ebs
2018/01/11 10:45:40 Running builder: amazon-ebs
2018/01/11 10:45:40 [INFO] (telemetry) Starting builder amazon-ebs
2018/01/11 10:45:40 packer: 2018/01/11 10:45:40 Found region ap-northeast-1
2018/01/11 10:45:40 packer: 2018/01/11 10:45:40 [INFO] Finding AZ and VpcId for the given subnet 'subnet-xxxxxxxxx'
2018/01/11 10:45:41 packer: 2018/01/11 10:45:41 [INFO] AvailabilityZone found: 'ap-northeast-1a'
2018/01/11 10:45:41 packer: 2018/01/11 10:45:41 [INFO] VpcId found: 'vpc-xxxxxxxxx'
2018/01/11 10:45:41 ui: ==> amazon-ebs: Prevalidating AMI Name: Ubuntu_Xenial_Test
==> amazon-ebs: Prevalidating AMI Name: Ubuntu_Xenial_Test
2018/01/11 10:45:43 packer: 2018/01/11 10:45:43 Using AMI Filters {
2018/01/11 10:45:43 packer: ImageIds: ["ami-d39a02b5"]
2018/01/11 10:45:43 packer: }
2018/01/11 10:45:43 ui: amazon-ebs: Found Image ID: ami-d39a02b5
amazon-ebs: Found Image ID: ami-d39a02b5
2018/01/11 10:45:43 ui: ==> amazon-ebs: Creating temporary keypair: packer_5a56cfd4-3928-9930-bc16-4d746b4ffed5
==> amazon-ebs: Creating temporary keypair: packer_5a56cfd4-3928-9930-bc16-4d746b4ffed5
2018/01/11 10:45:43 ui: ==> amazon-ebs: Creating temporary security group for this instance: packer_5a56cfd7-d25a-1fb3-2d5f-a7fdadf8546d
==> amazon-ebs: Creating temporary security group for this instance: packer_5a56cfd7-d25a-1fb3-2d5f-a7fdadf8546d
2018/01/11 10:45:44 ui: ==> amazon-ebs: Authorizing access to port 22 from 0.0.0.0/0 in the temporary security group...
==> amazon-ebs: Authorizing access to port 22 from 0.0.0.0/0 in the temporary security group...
2018/01/11 10:45:44 packer: 2018/01/11 10:45:44 [DEBUG] Waiting for temporary security group: sg-eb77cd92
2018/01/11 10:45:44 packer: 2018/01/11 10:45:44 [DEBUG] Found security group sg-eb77cd92
==> amazon-ebs: Launching a source AWS instance...
2018/01/11 10:45:44 ui: ==> amazon-ebs: Launching a source AWS instance...
2018/01/11 10:45:44 ui: ==> amazon-ebs: Adding tags to source instance
==> amazon-ebs: Adding tags to source instance
amazon-ebs: Adding tag: "Name": "Packer Builder"
2018/01/11 10:45:44 ui: amazon-ebs: Adding tag: "Name": "Packer Builder"
2018/01/11 10:45:45 ui: amazon-ebs: Instance ID: i-033cb8f73febed5e2
amazon-ebs: Instance ID: i-033cb8f73febed5e2
==> amazon-ebs: Waiting for instance (i-033cb8f73febed5e2) to become ready...
2018/01/11 10:45:45 ui: ==> amazon-ebs: Waiting for instance (i-033cb8f73febed5e2) to become ready...
==> amazon-ebs: Error waiting for instance (i-033cb8f73febed5e2) to become ready: ResourceNotReady: exceeded wait attempts
2018/01/11 10:55:40 ui error: ==> amazon-ebs: Error waiting for instance (i-033cb8f73febed5e2) to become ready: ResourceNotReady: exceeded wait attempts
2018/01/11 10:55:40 ui: ==> amazon-ebs: Terminating the source AWS instance...
==> amazon-ebs: Terminating the source AWS instance...
2018/01/11 10:55:40 packer: 2018/01/11 10:55:40 Waiting for state to become: terminated
2018/01/11 10:55:40 packer: 2018/01/11 10:55:40 Using 2s as polling delay (change with AWS_POLL_DELAY_SECONDS)
2018/01/11 10:55:40 packer: 2018/01/11 10:55:40 Allowing 300s to complete (change with AWS_TIMEOUT_SECONDS)
==> amazon-ebs: No volumes to clean up, skipping
2018/01/11 10:56:47 ui: ==> amazon-ebs: No volumes to clean up, skipping
2018/01/11 10:56:47 ui: ==> amazon-ebs: Deleting temporary security group...
==> amazon-ebs: Deleting temporary security group...
==> amazon-ebs: Deleting temporary keypair...
2018/01/11 10:56:47 ui: ==> amazon-ebs: Deleting temporary keypair...
Build 'amazon-ebs' errored: Error waiting for instance (i-033cb8f73febed5e2) to become ready: ResourceNotReady: exceeded wait attempts
==> Some builds didn't complete successfully and had errors:
--> amazon-ebs: Error waiting for instance (i-033cb8f73febed5e2) to become ready: ResourceNotReady: exceeded wait attempts
==> Builds finished but no artifacts were created.
2018/01/11 10:56:47 [INFO] (telemetry) ending amazon-ebs
2018/01/11 10:56:47 [INFO] (telemetry) found error: Error waiting for instance (i-033cb8f73febed5e2) to become ready: ResourceNotReady: exceeded wait attempts
2018/01/11 10:56:47 ui error: Build 'amazon-ebs' errored: Error waiting for instance (i-033cb8f73febed5e2) to become ready: ResourceNotReady: exceeded wait attempts
2018/01/11 10:56:47 Builds completed. Waiting on interrupt barrier...
2018/01/11 10:56:47 machine readable: error-count []string{"1"}
2018/01/11 10:56:47 ui error:
==> Some builds didn't complete successfully and had errors:
2018/01/11 10:56:47 machine readable: amazon-ebs,error []string{"Error waiting for instance (i-033cb8f73febed5e2) to become ready: ResourceNotReady: exceeded wait attempts"}
2018/01/11 10:56:47 ui error: --> amazon-ebs: Error waiting for instance (i-033cb8f73febed5e2) to become ready: ResourceNotReady: exceeded wait attempts
2018/01/11 10:56:47 ui:
==> Builds finished but no artifacts were created.
2018/01/11 10:56:47 [INFO] (telemetry) Finalizing.
2018/01/11 10:56:49 waiting for all plugin processes to complete...
2018/01/11 10:56:49 /usr/local/bin/packer: plugin process exited
{
"builders": [{
"type": "amazon-ebs",
"region": "ap-northeast-1",
"instance_type": "t2.micro",
"ssh_username": "ubuntu",
"source_ami": "ami-d39a02b5",
"ami_name": "Ubuntu_Xenial_Test",
"ami_virtualization_type": "hvm",
"associate_public_ip_address": "true",
"subnet_id": "subnet-xxxxxxxxx",
"ami_block_device_mappings":[{
"device_name": "/dev/sda1",
"volume_size": 8,
"volume_type": "gp2",
"delete_on_termination": true
}]
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment