Using Packer and Ansible for Hardening
This lab facilitates learning by doing by utilizing Packer to create an ami-image file that is staged in Amazon aws. The Packer tool is used to run an Ansible role against the OS image to harden the image. The resulting ami-image would then be available to specify when creating or upgrading Kubernetes clusters using installers such as kops.
In this lab you will generate an RSA key for use by packer, edit Amazon AWS Keys into a packer build script, and run a packer job. The solution video explains how to monitor the progress and results on the aws console. Additionally each script, json file, and ansible playbook is briefly reviewed.