· 7 years ago · May 05, 2018, 03:56 AM
1$ PACKER_LOG=1 packer-1.2 build -var-file=./vars/prod_xenial_build.json debug.json
22018/04/27 13:05:56 [INFO] Packer version: 1.2.2
32018/04/27 13:05:56 Packer Target OS/Arch: darwin amd64
42018/04/27 13:05:56 Built with Go Version: go1.10
52018/04/27 13:05:56 Detected home directory from env var: /Users/alexg
62018/04/27 13:05:56 Using internal plugin for azure-arm
72018/04/27 13:05:56 Using internal plugin for ncloud
82018/04/27 13:05:56 Using internal plugin for null
92018/04/27 13:05:56 Using internal plugin for virtualbox-ovf
102018/04/27 13:05:56 Using internal plugin for scaleway
112018/04/27 13:05:56 Using internal plugin for alicloud-ecs
122018/04/27 13:05:56 Using internal plugin for amazon-ebs
132018/04/27 13:05:56 Using internal plugin for amazon-ebssurrogate
142018/04/27 13:05:56 Using internal plugin for amazon-instance
152018/04/27 13:05:56 Using internal plugin for cloudstack
162018/04/27 13:05:56 Using internal plugin for digitalocean
172018/04/27 13:05:56 Using internal plugin for profitbricks
182018/04/27 13:05:56 Using internal plugin for file
192018/04/27 13:05:56 Using internal plugin for lxd
202018/04/27 13:05:56 Using internal plugin for triton
212018/04/27 13:05:56 Using internal plugin for amazon-ebsvolume
222018/04/27 13:05:56 Using internal plugin for hyperv-iso
232018/04/27 13:05:56 Using internal plugin for oracle-oci
242018/04/27 13:05:56 Using internal plugin for vmware-vmx
252018/04/27 13:05:56 Using internal plugin for amazon-chroot
262018/04/27 13:05:56 Using internal plugin for lxc
272018/04/27 13:05:56 Using internal plugin for openstack
282018/04/27 13:05:56 Using internal plugin for oracle-classic
292018/04/27 13:05:56 Using internal plugin for parallels-iso
302018/04/27 13:05:56 Using internal plugin for parallels-pvm
312018/04/27 13:05:56 Using internal plugin for qemu
322018/04/27 13:05:56 Using internal plugin for docker
332018/04/27 13:05:56 Using internal plugin for googlecompute
342018/04/27 13:05:56 Using internal plugin for hyperv-vmcx
352018/04/27 13:05:56 Using internal plugin for oneandone
362018/04/27 13:05:56 Using internal plugin for virtualbox-iso
372018/04/27 13:05:56 Using internal plugin for vmware-iso
382018/04/27 13:05:56 Using internal plugin for shell
392018/04/27 13:05:56 Using internal plugin for windows-shell
402018/04/27 13:05:56 Using internal plugin for chef-client
412018/04/27 13:05:56 Using internal plugin for chef-solo
422018/04/27 13:05:56 Using internal plugin for file
432018/04/27 13:05:56 Using internal plugin for puppet-server
442018/04/27 13:05:56 Using internal plugin for ansible-local
452018/04/27 13:05:56 Using internal plugin for converge
462018/04/27 13:05:56 Using internal plugin for windows-restart
472018/04/27 13:05:56 Using internal plugin for puppet-masterless
482018/04/27 13:05:56 Using internal plugin for salt-masterless
492018/04/27 13:05:56 Using internal plugin for ansible
502018/04/27 13:05:56 Using internal plugin for powershell
512018/04/27 13:05:56 Using internal plugin for shell-local
522018/04/27 13:05:56 Using internal plugin for alicloud-import
532018/04/27 13:05:56 Using internal plugin for googlecompute-export
542018/04/27 13:05:56 Using internal plugin for manifest
552018/04/27 13:05:56 Using internal plugin for compress
562018/04/27 13:05:56 Using internal plugin for docker-save
572018/04/27 13:05:56 Using internal plugin for docker-tag
582018/04/27 13:05:56 Using internal plugin for vagrant-cloud
592018/04/27 13:05:56 Using internal plugin for vsphere-template
602018/04/27 13:05:56 Using internal plugin for amazon-import
612018/04/27 13:05:56 Using internal plugin for artifice
622018/04/27 13:05:56 Using internal plugin for atlas
632018/04/27 13:05:56 Using internal plugin for docker-import
642018/04/27 13:05:56 Using internal plugin for docker-push
652018/04/27 13:05:56 Using internal plugin for checksum
662018/04/27 13:05:56 Using internal plugin for shell-local
672018/04/27 13:05:56 Using internal plugin for vagrant
682018/04/27 13:05:56 Using internal plugin for vsphere
692018/04/27 13:05:56 Detected home directory from env var: /Users/alexg
702018/04/27 13:05:56 Attempting to open config file: /Users/alexg/.packerconfig
712018/04/27 13:05:56 [WARN] Config file doesn't exist: /Users/alexg/.packerconfig
722018/04/27 13:05:56 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[amazon-instance:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-instance file:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-file oracle-classic:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-classic googlecompute:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-googlecompute virtualbox-ovf:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-ovf alicloud-ecs:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-alicloud-ecs profitbricks:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-profitbricks azure-arm:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-azure-arm lxc:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxc oneandone:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oneandone triton:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-triton amazon-ebsvolume:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebsvolume amazon-chroot:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-chroot docker:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-docker hyperv-vmcx:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-vmcx virtualbox-iso:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-iso null:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-null amazon-ebssurrogate:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebssurrogate cloudstack:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-cloudstack oracle-oci:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-oci openstack:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-openstack amazon-ebs:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebs hyperv-iso:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-iso parallels-iso:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-iso scaleway:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-scaleway digitalocean:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-digitalocean vmware-iso:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-iso ncloud:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-ncloud lxd:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxd vmware-vmx:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-vmx parallels-pvm:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-pvm qemu:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-qemu] PostProcessors:map[compress:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-compress googlecompute-export:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-googlecompute-export manifest:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-manifest artifice:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-artifice atlas:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-atlas shell-local:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-shell-local alicloud-import:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-alicloud-import docker-save:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-save docker-tag:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-tag docker-push:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-push vagrant-cloud:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant-cloud vsphere-template:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere-template amazon-import:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-amazon-import docker-import:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-import checksum:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-checksum vagrant:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant vsphere:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere] Provisioners:map[windows-shell:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-shell puppet-server:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-server powershell:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-powershell ansible:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible shell:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell ansible-local:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible-local windows-restart:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-restart salt-masterless:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-salt-masterless puppet-masterless:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-masterless shell-local:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell-local chef-client:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-client chef-solo:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-solo file:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-file converge:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-converge]}
732018/04/27 13:05:56 Detected home directory from env var: /Users/alexg
742018/04/27 13:05:56 Detected home directory from env var: /Users/alexg
752018/04/27 13:05:56 Setting cache directory: /Users/alexg/workspace/medal/packer/packer_cache
762018/04/27 13:05:56 Loading builder: amazon-ebs
772018/04/27 13:05:56 Plugin could not be found. Checking same directory as executable.
782018/04/27 13:05:56 Current exe path: /usr/local/bin/packer-1.2
792018/04/27 13:05:56 Creating plugin client for path: /usr/local/bin/packer-1.2
802018/04/27 13:05:56 Starting plugin: /usr/local/bin/packer-1.2 []string{"/usr/local/bin/packer-1.2", "plugin", "packer-builder-amazon-ebs"}
812018/04/27 13:05:56 Waiting for RPC address for: /usr/local/bin/packer-1.2
822018/04/27 13:05:56 packer-1.2: 2018/04/27 13:05:56 [INFO] Packer version: 1.2.2
832018/04/27 13:05:56 packer-1.2: 2018/04/27 13:05:56 Packer Target OS/Arch: darwin amd64
842018/04/27 13:05:56 packer-1.2: 2018/04/27 13:05:56 Built with Go Version: go1.10
852018/04/27 13:05:56 packer-1.2: 2018/04/27 13:05:56 Detected home directory from env var: /Users/alexg
862018/04/27 13:05:56 packer-1.2: 2018/04/27 13:05:56 Attempting to open config file: /Users/alexg/.packerconfig
872018/04/27 13:05:56 packer-1.2: 2018/04/27 13:05:56 [WARN] Config file doesn't exist: /Users/alexg/.packerconfig
882018/04/27 13:05:56 packer-1.2: 2018/04/27 13:05:56 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
892018/04/27 13:05:56 packer-1.2: 2018/04/27 13:05:56 Detected home directory from env var: /Users/alexg
902018/04/27 13:05:56 packer-1.2: 2018/04/27 13:05:56 Setting cache directory: /Users/alexg/workspace/medal/packer/packer_cache
912018/04/27 13:05:56 packer-1.2: 2018/04/27 13:05:56 args: []string{"packer-builder-amazon-ebs"}
922018/04/27 13:05:56 packer-1.2: 2018/04/27 13:05:56 Detected home directory from env var: /Users/alexg
932018/04/27 13:05:56 packer-1.2: 2018/04/27 13:05:56 Plugin minimum port: 10000
942018/04/27 13:05:56 packer-1.2: 2018/04/27 13:05:56 Plugin maximum port: 25000
952018/04/27 13:05:56 packer-1.2: 2018/04/27 13:05:56 Plugin address: unix /var/folders/b9/fmsc1c555w92_cds53fwcsn40000gn/T/packer-plugin554575620
962018/04/27 13:05:56 packer-1.2: 2018/04/27 13:05:56 Waiting for connection...
972018/04/27 13:05:56 packer-1.2: 2018/04/27 13:05:56 Serving a plugin connection...
982018/04/27 13:05:56 ui: amazon-ebs output will be in this color.
992018/04/27 13:05:56 ui:
1002018/04/27 13:05:56 Build debug mode: false
1012018/04/27 13:05:56 Force build: false
1022018/04/27 13:05:56 On error:
1032018/04/27 13:05:56 Preparing build: amazon-ebs
104amazon-ebs output will be in this color.
105
1062018/04/27 13:05:56 packer-1.2: 2018/04/27 13:05:56 Config: {PackerConfig:{PackerBuildName:amazon-ebs PackerBuilderType:amazon-ebs PackerDebug:false PackerForce:false PackerOnError: PackerUserVars:map[env:prod encrypted_ami:true kms_key_id:4617665e-aaca-4516-b9b6-83434811c391 ami_description:Medal Ubuntu Linux Production AMI ami_name_prefix:medal-prod subnet_id:subnet-8ce585c4 ami_os_string:xenial-16.04]} AccessConfig:{AccessKey: CustomEndpointEc2: MFACode: ProfileName:prod RawRegion:us-west-2 SecretKey: SkipValidation:false SkipMetadataApiCheck:false Token: session:<nil>} AMIConfig:{AMIName:medal-prod_ubuntu-xenial-16.04-amd64-server_1524859556 AMIDescription:{{user `ami_description`}} AMIVirtType: 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:false DeviceName:/dev/sda1 Encrypted:true IOPS:0 NoDevice:false SnapshotId: VirtualName: VolumeType: VolumeSize:8 KmsKeyId:4617665e-aaca-4516-b9b6-83434811c391}]} LaunchBlockDevices:{LaunchMappings:[]}} RunConfig:{AssociatePublicIpAddress:false AvailabilityZone: EbsOptimized:false IamInstanceProfile: InstanceType:t2.micro RunTags:map[] SourceAmi: SourceAmiFilter:{Filters:map[0xc42051a9a0:0xc42051a9c0 0xc42051a920:0xc42051a940 0xc42051a960:0xc42051a980] Owners:[0xc42051aa40] MostRecent:true} SpotPrice: SpotPriceAutoProduct: DisableStopInstance:false SecurityGroupId: SecurityGroupIds:[] TemporarySGSourceCidr:0.0.0.0/0 SubnetId:subnet-8ce585c4 TemporaryKeyPairName:packer_5ae382a4-2dd5-c734-0077-34bb68ba05d1 UserData: UserDataFile: WindowsPasswordTimeout:20m0s VpcId: InstanceInitiatedShutdownBehavior:terminate 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: SSHKeepAliveInterval:5s SSHReadWriteTimeout:0s WinRMUser: WinRMPassword: WinRMHost: WinRMPort:0 WinRMTimeout:0s WinRMUseSSL:false WinRMInsecure:false WinRMUseNTLM:false WinRMTransportDecorator:<nil>} SSHKeyPairName: SSHInterface:} VolumeRunTags:map[] ctx:{Data:<nil> Funcs:map[clean_ami_name:0x1842090] UserVariables:map[ami_description:Medal Ubuntu Linux Production AMI ami_name_prefix:medal-prod subnet_id:subnet-8ce585c4 ami_os_string:xenial-16.04 env:prod encrypted_ami:true kms_key_id:4617665e-aaca-4516-b9b6-83434811c391] EnableEnv:false BuildName:amazon-ebs BuildType:amazon-ebs TemplatePath:/Users/alexg/workspace/medal/packer/debug.json}}
1072018/04/27 13:05:56 Waiting on builds to complete...
1082018/04/27 13:05:56 Starting build run: amazon-ebs
1092018/04/27 13:05:56 Running builder: amazon-ebs
1102018/04/27 13:05:56 [INFO] (telemetry) Starting builder amazon-ebs
1112018/04/27 13:05:56 packer-1.2: 2018/04/27 13:05:56 Found region us-west-2
1122018/04/27 13:05:56 packer-1.2: 2018/04/27 13:05:56 [INFO] AWS Auth provider used: "SharedConfigCredentials: /Users/alexg/.aws/credentials"
1132018/04/27 13:05:56 packer-1.2: 2018/04/27 13:05:56 [INFO] Finding AZ and VpcId for the given subnet 'subnet-8ce585c4'
1142018/04/27 13:05:57 packer-1.2: 2018/04/27 13:05:57 [INFO] AvailabilityZone found: 'us-west-2a'
1152018/04/27 13:05:57 packer-1.2: 2018/04/27 13:05:57 [INFO] VpcId found: 'vpc-4e695128'
1162018/04/27 13:05:57 ui: ==> amazon-ebs: Prevalidating AMI Name: medal-prod_ubuntu-xenial-16.04-amd64-server_1524859556
117==> amazon-ebs: Prevalidating AMI Name: medal-prod_ubuntu-xenial-16.04-amd64-server_1524859556
1182018/04/27 13:05:58 packer-1.2: 2018/04/27 13:05:58 Using AMI Filters {
1192018/04/27 13:05:58 packer-1.2: Filters: [{
1202018/04/27 13:05:58 packer-1.2: Name: "root-device-type",
1212018/04/27 13:05:58 packer-1.2: Values: ["ebs"]
1222018/04/27 13:05:58 packer-1.2: },{
1232018/04/27 13:05:58 packer-1.2: Name: "virtualization-type",
1242018/04/27 13:05:58 packer-1.2: Values: ["hvm"]
1252018/04/27 13:05:58 packer-1.2: },{
1262018/04/27 13:05:58 packer-1.2: Name: "name",
1272018/04/27 13:05:58 packer-1.2: Values: ["ubuntu/images/hvm-ssd/ubuntu-xenial-16.04-amd64-server-*"]
1282018/04/27 13:05:58 packer-1.2: }],
1292018/04/27 13:05:58 packer-1.2: Owners: ["099720109477"]
1302018/04/27 13:05:58 packer-1.2: }
1312018/04/27 13:06:01 ui: amazon-ebs: Found Image ID: ami-ca89eeb2
132 amazon-ebs: Found Image ID: ami-ca89eeb2
1332018/04/27 13:06:01 ui: ==> amazon-ebs: Creating temporary keypair: packer_5ae382a4-2dd5-c734-0077-34bb68ba05d1
134==> amazon-ebs: Creating temporary keypair: packer_5ae382a4-2dd5-c734-0077-34bb68ba05d1
1352018/04/27 13:06:01 ui: ==> amazon-ebs: Creating temporary security group for this instance: packer_5ae382a9-3aa3-ff4d-079e-f5452e543b74
136==> amazon-ebs: Creating temporary security group for this instance: packer_5ae382a9-3aa3-ff4d-079e-f5452e543b74
1372018/04/27 13:06:01 ui: ==> amazon-ebs: Authorizing access to port 22 from 0.0.0.0/0 in the temporary security group...
138==> amazon-ebs: Authorizing access to port 22 from 0.0.0.0/0 in the temporary security group...
1392018/04/27 13:06:01 packer-1.2: 2018/04/27 13:06:01 [DEBUG] Waiting for temporary security group: sg-9cf5a0e2
1402018/04/27 13:06:01 packer-1.2: 2018/04/27 13:06:01 [DEBUG] Found security group sg-9cf5a0e2
1412018/04/27 13:06:01 ui: ==> amazon-ebs: Launching a source AWS instance...
142==> amazon-ebs: Launching a source AWS instance...
1432018/04/27 13:06:01 ui: ==> amazon-ebs: Adding tags to source instance
144==> amazon-ebs: Adding tags to source instance
1452018/04/27 13:06:01 ui: amazon-ebs: Adding tag: "Name": "Packer Builder"
146 amazon-ebs: Adding tag: "Name": "Packer Builder"
1472018/04/27 13:06:02 ui: amazon-ebs: Instance ID: i-092638fef83e64b85
148 amazon-ebs: Instance ID: i-092638fef83e64b85
1492018/04/27 13:06:02 ui: ==> amazon-ebs: Waiting for instance (i-092638fef83e64b85) to become ready...
150==> amazon-ebs: Waiting for instance (i-092638fef83e64b85) to become ready...
1512018/04/27 13:06:33 packer-1.2: 2018/04/27 13:06:33 [INFO] Not using winrm communicator, skipping get password...
1522018/04/27 13:06:33 packer-1.2: 2018/04/27 13:06:33 [INFO] Waiting for SSH, up to timeout: 5m0s
1532018/04/27 13:06:33 ui: ==> amazon-ebs: Waiting for SSH to become available...
154==> amazon-ebs: Waiting for SSH to become available...
1552018/04/27 13:06:33 packer-1.2: 2018/04/27 13:06:33 [DEBUG] TCP connection to SSH ip/port failed: dial tcp 10.2.14.112:22: connect: connection refused
1562018/04/27 13:06:38 packer-1.2: 2018/04/27 13:06:38 [INFO] Attempting SSH connection...
1572018/04/27 13:06:38 packer-1.2: 2018/04/27 13:06:38 [DEBUG] reconnecting to TCP connection for SSH
1582018/04/27 13:06:38 packer-1.2: 2018/04/27 13:06:38 [DEBUG] handshaking with SSH
1592018/04/27 13:06:38 packer-1.2: 2018/04/27 13:06:38 [DEBUG] handshake complete!
1602018/04/27 13:06:38 packer-1.2: 2018/04/27 13:06:38 [DEBUG] Opening new ssh session
1612018/04/27 13:06:38 packer-1.2: 2018/04/27 13:06:38 [INFO] agent forwarding enabled
1622018/04/27 13:06:38 ui: ==> amazon-ebs: Connected to SSH!
163==> amazon-ebs: Connected to SSH!
1642018/04/27 13:06:38 packer-1.2: 2018/04/27 13:06:38 Running the provision hook
1652018/04/27 13:06:38 ui: ==> amazon-ebs: Stopping the source instance...
166==> amazon-ebs: Stopping the source instance...
1672018/04/27 13:06:38 ui: amazon-ebs: Stopping instance, attempt 1
168 amazon-ebs: Stopping instance, attempt 1
1692018/04/27 13:06:39 ui: ==> amazon-ebs: Waiting for the instance to stop...
170==> amazon-ebs: Waiting for the instance to stop...
171==> amazon-ebs: Creating the AMI: medal-prod_ubuntu-xenial-16.04-amd64-server_1524859556
1722018/04/27 13:07:25 ui: ==> amazon-ebs: Creating the AMI: medal-prod_ubuntu-xenial-16.04-amd64-server_1524859556
1732018/04/27 13:07:25 ui error: ==> amazon-ebs: Error creating AMI: UnknownParameter: The parameter KmsKeyId is not recognized
174==> amazon-ebs: status code: 400, request id: c362f898-1c7a-44d0-9f82-c9b0ac155999
175==> amazon-ebs: Error creating AMI: UnknownParameter: The parameter KmsKeyId is not recognized
1762018/04/27 13:07:25 ui: ==> amazon-ebs: Terminating the source AWS instance...
177==> amazon-ebs: status code: 400, request id: c362f898-1c7a-44d0-9f82-c9b0ac155999
178==> amazon-ebs: Terminating the source AWS instance...
1792018/04/27 13:07:25 packer-1.2: 2018/04/27 13:07:25 Waiting for state to become: terminated
1802018/04/27 13:07:25 packer-1.2: 2018/04/27 13:07:25 Using 2s as polling delay (change with AWS_POLL_DELAY_SECONDS)
1812018/04/27 13:07:25 packer-1.2: 2018/04/27 13:07:25 Allowing 300s to complete (change with AWS_TIMEOUT_SECONDS)
1822018/04/27 13:07:32 ui: ==> amazon-ebs: Cleaning up any extra volumes...
183==> amazon-ebs: Cleaning up any extra volumes...
184==> amazon-ebs: No volumes to clean up, skipping
1852018/04/27 13:07:32 ui: ==> amazon-ebs: No volumes to clean up, skipping
1862018/04/27 13:07:32 ui: ==> amazon-ebs: Deleting temporary security group...
187==> amazon-ebs: Deleting temporary security group...
1882018/04/27 13:07:32 ui: ==> amazon-ebs: Deleting temporary keypair...
189==> amazon-ebs: Deleting temporary keypair...
1902018/04/27 13:07:32 [INFO] (telemetry) ending amazon-ebs
1912018/04/27 13:07:32 ui error: Build 'amazon-ebs' errored: Error creating AMI: UnknownParameter: The parameter KmsKeyId is not recognized
192 status code: 400, request id: c362f898-1c7a-44d0-9f82-c9b0ac155999
1932018/04/27 13:07:32 Builds completed. Waiting on interrupt barrier...
1942018/04/27 13:07:32 machine readable: error-count []string{"1"}
1952018/04/27 13:07:32 ui error:
196==> Some builds didn't complete successfully and had errors:
1972018/04/27 13:07:32 machine readable: amazon-ebs,error []string{"Error creating AMI: UnknownParameter: The parameter KmsKeyId is not recognized\n\tstatus code: 400, request id: c362f898-1c7a-44d0-9f82-c9b0ac155999"}
1982018/04/27 13:07:32 ui error: --> amazon-ebs: Error creating AMI: UnknownParameter: The parameter KmsKeyId is not recognized
199 status code: 400, request id: c362f898-1c7a-44d0-9f82-c9b0ac155999
2002018/04/27 13:07:32 ui:
201==> Builds finished but no artifacts were created.
2022018/04/27 13:07:32 [INFO] (telemetry) Finalizing.
203Build 'amazon-ebs' errored: Error creating AMI: UnknownParameter: The parameter KmsKeyId is not recognized
204 status code: 400, request id: c362f898-1c7a-44d0-9f82-c9b0ac155999
205
206==> Some builds didn't complete successfully and had errors:
207--> amazon-ebs: Error creating AMI: UnknownParameter: The parameter KmsKeyId is not recognized
208 status code: 400, request id: c362f898-1c7a-44d0-9f82-c9b0ac155999
209
210==> Builds finished but no artifacts were created.
2112018/04/27 13:07:33 waiting for all plugin processes to complete...
2122018/04/27 13:07:33 /usr/local/bin/packer-1.2: plugin process exited