terraform aws ecs code example
Example: create aws ec2 instance using terraform
#create aws ec2 instance using terraform
provider "aws" {
region = "ap-south-1"
}
resource "aws_instance" "ec2" {
ami = "ami-019f0583716f0aec4" //ap-south-1
instance_type = "t2.micro"
tags = {
Name = "visualscrapy"
}
}
#you can get the ami-id from amzon marketplace