Files
getting-started/aws/aws-terraform/aws-app-stack/main.tf
2021-04-16 16:01:29 +04:00

25 lines
344 B
HCL

terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 3.27"
}
}
}
provider "aws" {
profile = "default"
region = "us-west-2"
}
resource "aws_instance" "vm-web" {
ami = "ami-830c94e3"
instance_type = "t2.micro"
tags = {
Name = "server for web"
Env = "dev"
}
}