Add example terraform file for aws
This commit is contained in:
parent
a3d366c7fb
commit
fd0874010f
1 changed files with 23 additions and 0 deletions
23
aws.tf
Normal file
23
aws.tf
Normal file
|
@ -0,0 +1,23 @@
|
|||
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"
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue