-
Notifications
You must be signed in to change notification settings - Fork 0
/
ec2.tf
36 lines (26 loc) · 884 Bytes
/
ec2.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
# resource "aws_instance" "terraformInstance1" {
# ami = "ami-0ddab716196087271"
# instance_type = "t2.micro"
# network_interface {
# network_interface_id = aws_network_interface.terraformNetwork1.id
# device_index = 0
# }
# }
# resource "aws_instance" "terraformInstance2" {
# ami = "ami-0ddab716196087271"
# instance_type = "t2.micro"
# network_interface {
# network_interface_id = aws_network_interface.terraformNetwork2.id
# device_index = 0
# }
# }
# resource "aws_ec2_tag" "terraformInstance1Tag" {
# resource_id = aws_instance.terraformInstance1.id
# key = "Name"
# value = "terraformInstance1"
# }
# resource "aws_ec2_tag" "terraformInstance2Tag" {
# resource_id = aws_instance.terraformInstance2.id
# key = "Name"
# value = "terraformInstance2"
# }