Haiku Driven Development with Packer and Terraform

Packer and Terraform are awesome tools for building machine images and deploying cloud infrastructure (respectively). 

I've been digging into Terraform for awhile now, and recently as an exercise in integrating it with Packer, I built a shell script that used Packer to create an Ubuntu based AMI image with a message of the day installed. Since I'm doing Haiku Driven Development(tm), naturally the message of the day was a haiku.

With the machine image built by Packer, the script launched Terraform to spin up an EC2 instance based on that image, and as a last step the Terraform code created an ssh login script to show the Haiku, which the bash wrapper dutifully executed.

I have shared the code on Github so you can build your own Infrastructure as Code Japanese Poetry, but if you can't wait for that to see the haiku, here it is:

Shell starts, packer builds
Terraform deploys to cloud
Glad nerds read haiku

要查看或添加评论,请登录

John Lockwood的更多文章

  • Please Send Python Resources

    Please Send Python Resources

    My website has a mailing list with a modest band of cool kids who've signed up to receive something from me once in a…

  • What Do Tech Interviewers Look For?

    What Do Tech Interviewers Look For?

    Recently, one of my LinkedIn connections asked a question that asked for folks who’ve given technical interviews to…

    5 条评论
  • How to Get a Software Job Without Applying For One

    How to Get a Software Job Without Applying For One

    I read a post from a newcomer to software development the other day about his frustration with having applied to some…

    5 条评论
  • 100 Days of Code?

    100 Days of Code?

    Unless they’re just pure mercenaries who went through some certification classes and are now that person on your team…

  • Let's Not Talk Politics -- LinkedIn Isn't Facebook

    Let's Not Talk Politics -- LinkedIn Isn't Facebook

    We all heard it, usually on any post that draws some attention, or on something that's at all controversial, like…

  • Charlotte No Kids In Cages - June 12

    Charlotte No Kids In Cages - June 12

    Our government is separating families as who cross our southern border and putting kids in cages. Often they've gone…

  • Things to Do At the End of the Day on Friday When You're Tired

    Things to Do At the End of the Day on Friday When You're Tired

    Well, you have to be a language nerd, of course, but here was what I assigned myself: Complicate the heck out of Hello,…

    3 条评论
  • Sacramento Tech Coop Meetup

    Sacramento Tech Coop Meetup

    I am pleased to announce that CodeSolid is sponsoring the Sacramento Tech Coop Meetup. Our first meeting will be…

    3 条评论
  • A Sacramento Tech Coop: Not Just Nerds, Not Just Communists

    A Sacramento Tech Coop: Not Just Nerds, Not Just Communists

    Mention the word "coop" and most people think of healthy foods, vegetarians, and clerks in Birkenstocks. Put the word…

    1 条评论
  • The Sweet Spot for Employee Owned Source Code

    The Sweet Spot for Employee Owned Source Code

    Employee owned source code is a new approach to creating software and a new software licensing model that few people…

    3 条评论

社区洞察

其他会员也浏览了