Building the AMI

Once you have created and validated your template, the packer build command does the following for you:

  1. First, it creates a one-time key pair for SSH access to the instance.
  2. Then, it creates a dedicated security group to control access to the instance.
  3. After completing the preceding step, it launches an instance.
  4. Then, it waits until SSH is ready to receive connections.
  5. Afterward, it runs the provisioner steps on the instance.
  6. Then, it stops the instance.
  7. After this, it generates an AMI from the stopped instance.
  8. Finally, it terminates the instance.
Check out the Packer documentation for more provisioners and functionality: https://www.packer.io/docs/.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset