Skip to content

Instantly share code, notes, and snippets.

@shivam-deepsource
Created September 29, 2022 05:30
Show Gist options
  • Select an option

  • Save shivam-deepsource/cc6f494d91ef4b6f325d89e5dfe7e77f to your computer and use it in GitHub Desktop.

Select an option

Save shivam-deepsource/cc6f494d91ef4b6f325d89e5dfe7e77f to your computer and use it in GitHub Desktop.
Example Terraform file
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 4.16"
}
}
required_version = ">= 1.2.0"
}
provider "aws" {
region = "us-west-2"
}
resource "aws_instance" "app_server" {
ami = "ami-830c94e3"
instance_type = "t2.micro"
tags = {
Name = "ExampleAppServerInstance"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment