terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 4.16"
}
}
required_version = ">= 1.2.0"
}
provider "aws" {
region = "region_name"
access_key = "access_key"
secret_key = "secret_key"
}
resource "aws_instance" "app_server" {
ami = "ami-0440d3b780d96b29d"
instance_type = "t2.micro"
tags = {
Name = "ExampleAppServerInstance"
}
}
No comments:
Post a Comment