variable "instance_name" { type = string default = "my-instance" } provider "aws" { region = "us-west-2" } resource "aws_instance" "example" { ami = "ami-0c55b159cbfafe1f0" instance_type = "t2.micro" tags = { Name = var.instance_name } }