Packer and Ansible to create AWS ami with Jenkins installed. Terraform to deploy Jenkins into AWS EC2
- Terraform, Packer and Ansible are installed
- aws credentials/config are stored in
~./.aws/credentials
and~./.aws/config
packer build -var-file="variables.pkrvars.hcl" aws-jenkins.pkr.hcl
cd terraform
terraform apply
Connect to http://<your_server_public_DNS>:8080 from your browser. Reference: Jenkins on AWS