Using for_each to Create Multiple SSH Keys with Terraform for AWS using Secrets Manager

Photo by Maria Cappelli on Unsplash

So I ran into a Clean Code issue called Don’t Repeat Yourself (DRY) when it came to secrets being associated to EC2 on AWS. So when I took two steps forward I took one back to make sure things are done with good…

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store