Immutable AWS Deployments with Packer and Jenkins
summary
Shows how to use Packer AMI builder plus shell provisioners to bake OpenJDK, Tomcat and a hello-world WAR into immutable AWS AMIs, then launch instances that immediately serve /hello without runtime provisioning. Builds run on a t2.micro build instance (Packer launches, snapshots EBS, then deregisters instance) and the process is run from a CI server — Jenkins job automates image builds. Notes storage cost for EBS snapshots and aims to eliminate SSH toil.
AI-written summary · about
chapters (27)
- 0:00Intro
- 0:54About
- 2:11Show of hands
- 3:01Deployments
- 4:48Complete
- 5:24Partial
- 6:17Typical Steps
- 7:45Automation?
- 8:37What could go wrong?
- 12:30Immutability
- 19:05Customize AMIS
- 20:25Packer
- 21:45Install
- 22:10Credentials
- 23:09Builders
- 24:22AWS AMI Builder
- 26:44Inspect
- 27:00Build!
- 29:20Provisioners
- 33:24Let's Provision our AMI
- 35:30Launch the instance
- 35:47Verify Tomcat
- 36:05Verify the API
- 36:33Automate this - Jenkins
- 36:49Summary
- 37:08Resources
- 37:54Questions
related talks
23mBuilding a Secure AWS Golden Image Pipeline with Packer, Vault and Terraform
49mBuild, provision & deploy in the Cloud with Packer, Ansible & Terraform
39mAutomating Immutable Infrastructure With Packer & Terraform
50mImmutable Infrastructure as Code. True story
41mDynamic cloud infra with packer + terraform + ansible + jenkins
15mJenkins on AWS for both small teams and enterprises
06mIgnite - Blue Green Deployments Using Terraform + Packer + Jenkins
19mDevOps Challenges: The Key Is Technical Excellence
