-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
57 lines (36 loc) · 783 Bytes
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#
# DO NOT DELETE THESE LINES!
#
# Your subnet ID is:
#
# subnet-9e15f8f6
#
# Your security group ID is:
#
# sg-dca200b4
#
# Your AMI ID is:
#
# ami-74ee001b
#
# Your Identity is:
#
# totaljobs-c51ce410c124a10e0db5e4b97fc2af39
#
provider "aws" {
access_key = "${var.aws_access_key}"
secret_key = "${var.aws_secret_key}"
region = "${var.aws_region}"
}
resource "aws_instance" "training_instance" {
ami = "ami-74ee001b"
instance_type = "t2.micro"
subnet_id = "subnet-9e15f8f6"
vpc_security_group_ids = ["sg-dca200b4"]
count = "1"
tags {
Identity = "totaljobs-c51ce410c124a10e0db5e4b97fc2af39"
Name = "training_instance"
Environment = "dev"
}
}