Skip to content

Instantly share code, notes, and snippets.

@100daysofdevops
Created March 3, 2019 03:21
Show Gist options
  • Select an option

  • Save 100daysofdevops/808d8b1446ca8c42f650963c776890c6 to your computer and use it in GitHub Desktop.

Select an option

Save 100daysofdevops/808d8b1446ca8c42f650963c776890c6 to your computer and use it in GitHub Desktop.
$ packer build firsttemplate.packer
amazon-ebs output will be in this color.
==> amazon-ebs: Prevalidating AMI Name: centos-packer-example-1.0
amazon-ebs: Found Image ID: ami-01ed306a12b7d1c96
==> amazon-ebs: Creating temporary keypair: packer_5c7b46cd-f58f-c1e6-161e-d7a4ecc53127
==> amazon-ebs: Creating temporary security group for this instance: packer_5c7b46e8-8b46-6e0c-39cd-d396e00a437c
==> amazon-ebs: Authorizing access to port 22 from 0.0.0.0/0 in the temporary security group...
==> amazon-ebs: Launching a source AWS instance...
==> amazon-ebs: Adding tags to source instance
amazon-ebs: Adding tag: "Name": "Packer Builder"
amazon-ebs: Instance ID: i-04684c7170390c2be
==> amazon-ebs: Waiting for instance (i-04684c7170390c2be) to become ready...
==> amazon-ebs: Using ssh communicator to connect: 54.213.244.43
==> amazon-ebs: Waiting for SSH to become available...
==> amazon-ebs: Connected to SSH!
==> amazon-ebs: Stopping the source instance...
amazon-ebs: Stopping instance, attempt 1
==> amazon-ebs: Waiting for the instance to stop...
==> amazon-ebs: Creating unencrypted AMI centos-packer-example-1.0 from instance i-04684c7170390c2be
amazon-ebs: AMI: ami-06b698571bfba5e44
==> amazon-ebs: Waiting for AMI to become ready...
==> amazon-ebs: Terminating the source AWS instance...
==> amazon-ebs: Cleaning up any extra volumes...
==> amazon-ebs: Destroying volume (vol-04b689b7d2b603ff0)...
==> amazon-ebs: Deleting temporary security group...
==> amazon-ebs: Deleting temporary keypair...
Build 'amazon-ebs' finished.
==> Builds finished. The artifacts of successful builds are:
--> amazon-ebs: AMIs were created:
us-west-2: ami-06b698571bfba5e44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment