Skip to content

Commit 2ff214a

Browse files
authored
Terraform AWS Instance create sample script
1 parent 5df635c commit 2ff214a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Aws-instance-example.tf

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
provider "aws"{
2+
region = "us-east-1"
3+
access_key = "AKIASGHX7SHCBQNPCDUB"
4+
secret_key = "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"
5+
version = "~> 2.0"
6+
7+
}
8+
9+
resource "aws_instance" "web" {
10+
ami = "ami-0ad82a384c06c911e"
11+
instance_type = "t2.micro"
12+
13+
tags = {
14+
Name = "HelloWorld"
15+
}
16+
}

0 commit comments

Comments
 (0)