Setting up Terraform in AWS CloudShell
In this chapter, we will focus on using Terraform to provision and manage our cloud infrastructure. Terraform is an open source IaC tool created by HashiCorp. It’s one of the most powerful and most used IaC tools at the moment. It enables users to define and provision infrastructure resources using a high-level configuration language. By utilizing a simple, declarative, and intuitive syntax, this IaC tool simplifies the process of creating, updating, and versioning infrastructure, which provides a powerful way to automate infrastructure management.
Here’s an example of how Terraform code looks:
resource "google_compute_firewall" "allow-ssh-from-my-ip" { name = "allow-ssh-from-my-ip" network = local.net_02 allow { protocol = "tcp" ports = ["22"] ...