terraform script for aws ec2 instance code example
Example: aws instance creation using terraform
resource "aws_instance" "myec2" {
ami = ""
instance_type = "t2.micro"
vpc_security_group_ids = ["SECURITY-GROUP-ID"]
key_name = ""
subnet_id = ""
iam_instance_profile = ""
tags = {
Name = ""
}
}