Variables can be accessed using the var keyword.
resource "aws_instance" "example" { ami = "ami-0c55b159cbfafe1f0" instance_type = var.instance_type tags = var.instance_tags }