diff --git a/Assignment-1/terraform_ec2.tf b/Assignment-1/terraform_ec2.tf new file mode 100644 index 0000000..7c07246 --- /dev/null +++ b/Assignment-1/terraform_ec2.tf @@ -0,0 +1,23 @@ +terraform { + required_providers { + aws = { + source = "hashicorp/aws" + version = "5.10.0" + } + } +} + +provider "aws" { + region = "us-east-1" + access_key = "douwantthis" + secret_key = "orthis" +} + +resource "aws_instance" "web" { + ami = "ami-0f34c5ae932e6f0e4" + instance_type = "t2.micro" + + tags = { + Name = "Terraform_ec2" + } +} \ No newline at end of file