Introduction to Infrastructure as Code with Terraform
What is Infrastructure as Code and Why is Terraform Useful?
Install Terraform on Mac, Linux, or Windows by downloading the binary or using a package manager (Homebrew or Chocolatey). Then...
Authenticate to AWS and create an EC2 instance under the AWS free tier. Write and validate Terraform configuration, initialize...
Modify EC2-instance configuration to use a different Ubuntu version. Plan and apply the changes to re-provision a new instance...
Destroy the AWS EC2 instance you created in the previous tutorials. Evaluate the plan and confirm the destruction.
Define Input Variables
Declare your AWS EC2 instance name as a variable. Reference the variable in Terraform configuration. Define variables using...
Query Data with Outputs
Declare output values to display an EC2 instance's ID and public IP address. Display all outputs and query specific outputs....
Store Remote State
Configure Terraform to store state in Terraform Cloud remote backend. Add a remote state block directly to configuration or set...