Terraform is a powerful infrastructure as code (IaC) tool that helps you build, change, and version infrastructure. It does have pros and cons like anything else, but a major benefit is that it is cloud-agnostic, meaning it can be used with multiple cloud providers.
In this lab, we’ll use AWS on windows as our cloud service provider. The components we’ll work on include:
- AWS Secrets Manager: A secrets management service that helps you protect access to your applications, services, and IT resources. It will be used to store and retrieve database credentials.
- Amazon RDS for PostgreSQL: A relational database service that provides you six familiar database engines to choose from, including Amazon Aurora, PostgreSQL, MySQL, etc.
- EC2 Instance: Amazon Elastic Compute Cloud (Amazon EC2) is a web service that provides secure, resizable compute capacity in the cloud.
The goal here is to have our application reference a secret password value in secrets manager, instead of storing the password in plain text in our source code.