Skip to content

Latest commit

 

History

History
54 lines (44 loc) · 2.07 KB

README.md

File metadata and controls

54 lines (44 loc) · 2.07 KB

Usage:

packer build -var "vpc_id=vpc-26576243" -var "subnet_id=subnet-929c07cb" base_ami.json
amazon-ebs output will be in this color.

==> amazon-ebs: Prevalidating AMI Name...
    amazon-ebs: Found Image ID: ami-6d1c2007
==> amazon-ebs: Creating temporary keypair: packer_58e2db14-7644-1ff9-aa24-af313b4e020e
==> amazon-ebs: Creating temporary security group for this instance...
==> amazon-ebs: Authorizing access to port 22 the temporary security group...
==> amazon-ebs: Launching a source AWS instance...
    amazon-ebs: Instance ID: i-0038339a5c11278af
==> amazon-ebs: Waiting for instance (i-0038339a5c11278af) to become ready...
==> amazon-ebs: Adding tags to source instance
==> amazon-ebs: Waiting for SSH to become available...



==> amazon-ebs: Connected to SSH!
==> amazon-ebs: Provisioning with shell script: ./scripts/update-system.sh
    amazon-ebs: Updating system

.....

    amazon-ebs: Complete!
==> amazon-ebs: Provisioning with shell script: ./scripts/remove-rootkey.sh
    amazon-ebs: Removing the temporary root key
==> amazon-ebs: Stopping the source instance...
==> amazon-ebs: Waiting for the instance to stop...
==> amazon-ebs: Enabling Enhanced Networking (SR-IOV)...
==> amazon-ebs: Enabling Enhanced Networking (ENA)...
==> amazon-ebs: Creating the AMI: packer-test-1491262228
    amazon-ebs: AMI: ami-5d1b9d4b
==> amazon-ebs: Waiting for AMI to become ready...
==> amazon-ebs: Creating Encrypted AMI Copy
==> amazon-ebs: Copying AMI: us-east-1(ami-5d1b9d4b)
==> amazon-ebs: Waiting for AMI copy to become ready...
==> amazon-ebs: Deregistering unencrypted AMI
==> amazon-ebs: Deleting unencrypted snapshots
    amazon-ebs: Snapshot ID: snap-0c32b63c61993c9b3
==> amazon-ebs: Terminating the source AWS instance...
==> amazon-ebs: Cleaning up any extra volumes...
==> amazon-ebs: Destroying volume (vol-06610b3d55e3dff9d)...
==> 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-east-1: ami-58189e4e