Skip to content

Instantly share code, notes, and snippets.

@tgross
Last active May 13, 2019 15:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tgross/ce69b86ceb86b5d40b44c532dce8be5a to your computer and use it in GitHub Desktop.
Save tgross/ce69b86ceb86b5d40b44c532dce8be5a to your computer and use it in GitHub Desktop.
==> amazon-ebs: Stopping the source instance...
amazon-ebs: Stopping instance
==> amazon-ebs: Waiting for the instance to stop...
==> amazon-ebs: Creating AMI n0iBIcp from instance i-0e5a3291cc68cd9b1
amazon-ebs: AMI: ami-07edc511e26111c15
==> amazon-ebs: Waiting for AMI to become ready...
==> amazon-ebs: Copying AMI (ami-07edc511e26111c15) to other regions...
amazon-ebs: Copying to: us-east-1
amazon-ebs: Waiting for all copies to complete...
==> amazon-ebs: 1 error(s) occurred:
2019/05/13 15:47:23 ui error: ==> amazon-ebs: 1 error(s) occurred:
==> amazon-ebs:
==> amazon-ebs: * Error waiting for AMI (ami-00b06e4b47a616447) in region (us-east-1): ResourceNotReady: failed waiting for successful resource state
==> amazon-ebs:
==> amazon-ebs: * Error waiting for AMI (ami-00b06e4b47a616447) in region (us-east-1): ResourceNotReady: failed waiting for successful resource state
==> amazon-ebs: Deregistering the AMI because cancellation, error or it was temporary (encrypt_boot was set)...
==> amazon-ebs: Terminating the source AWS instance...
==> amazon-ebs: Cleaning up any extra volumes...
==> amazon-ebs: No volumes to clean up, skipping
==> amazon-ebs: Deleting temporary security group...
==> amazon-ebs: Deleting temporary keypair...
2019/05/13 15:47:39 [INFO] (telemetry) ending amazon-ebs
2019/05/13 15:47:39 ui error: Build 'amazon-ebs' errored: 1 error(s) occurred:
* Error waiting for AMI (ami-00b06e4b47a616447) in region (us-east-1): ResourceNotReady: failed waiting for successful resource state
2019/05/13 15:47:39 Builds completed. Waiting on interrupt barrier...
2019/05/13 15:47:39 machine readable: error-count []string{"1"}
2019/05/13 15:47:39 ui error:
==> Some builds didn't complete successfully and had errors:
2019/05/13 15:47:39 machine readable: amazon-ebs,error []string{"1 error(s) occurred:\n\n* Error waiting for AMI (ami-00b06e4b47a616447) in region (us-east-1): ResourceNotReady: failed waiting for successful resource state"}
2019/05/13 15:47:39 ui error: --> amazon-ebs: 1 error(s) occurred:
* Error waiting for AMI (ami-00b06e4b47a616447) in region (us-east-1): ResourceNotReady: failed waiting for successful resource state
==> Builds finished but no artifacts were created.
2019/05/13 15:47:39 [INFO] (telemetry) Finalizing.
Build 'amazon-ebs' errored: 1 error(s) occurred:
* Error waiting for AMI (ami-00b06e4b47a616447) in region (us-east-1): ResourceNotReady: failed waiting for successful resource state
==> Some builds didn't complete successfully and had errors:
--> amazon-ebs: 1 error(s) occurred:
* Error waiting for AMI (ami-00b06e4b47a616447) in region (us-east-1): ResourceNotReady: failed waiting for successful resource state
==> Builds finished but no artifacts were created.
2019/05/13 15:47:39 waiting for all plugin processes to complete...
2019/05/13 15:47:39 /usr/local/bin/packer: plugin process exited
2019/05/13 15:47:39 /usr/local/bin/packer: plugin process exited
2019/05/13 15:47:39 /usr/local/bin/packer: plugin process exited
{
"builders": [
{
"type": "amazon-ebs",
"region": "us-east-1",
"source_ami_filter": {
"filters": {
"virtualization-type": "hvm",
"name": "amzn2-ami-ecs-hvm-2.*-x86_64-ebs",
"root-device-type": "ebs"
},
"owners": [
"amazon"
],
"most_recent": true
},
"instance_type": "c5.large",
"ssh_username": "ec2-user",
"ami_name": "packer_test{{isotime \"2006_01_02\"}}_{{timestamp}}",
"encrypt_boot": true,
"kms_key_id": "arn:aws:kms:us-east-1:REDACTED:key/REDACTED",
"region_kms_key_ids": {},
}
],
"provisioners": [
{
"type": "shell",
"inline": ["echo hello"]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment