Day 11 - Terraform Functions Part 1
Today I worked on Day 11 of my AWS Terraform learning journey. The focus was Terraform built-in functions and how they help clean, transform, validate, and reuse values inside infrastructure code. Terraform functions are small but powerful helpers. They are not custom functions like in Python or JavaScript. Instead, they are built into Terraform and can be used inside expressions to produce better names, cleaner tags, validated inputs, dynamic lists, and reusable configurations. For this day, I focused on six practical assignments. What I Built In this hands-on lab, I created: A VPC with merged tags An S3 bucket with a cleaned and formatted bucket name A security group with ports generated from a comma-separated variable An EC2 instance with instance type selected by environment Input validation for instance type format Outputs to clearly show how each function transformed the values Functions Covered lower() The lower() function converts text into lowercase. I used it t...