Skip to content

Instantly share code, notes, and snippets.

@devops-school
Created February 13, 2023 05:50
Show Gist options
  • Save devops-school/fd155eaf6761dee93e30b2de9bae7331 to your computer and use it in GitHub Desktop.
Save devops-school/fd155eaf6761dee93e30b2de9bae7331 to your computer and use it in GitHub Desktop.

Revisions

  1. devops-school created this gist Feb 13, 2023.
    16 changes: 16 additions & 0 deletions main.tf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    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
    }
    }