-
Notifications
You must be signed in to change notification settings - Fork 25
/
main.tf
47 lines (36 loc) · 872 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
module "ec2_babak" {
source = "./module/ec2"
instance_name = "v011"
key_name = "dvh"
}
module "ec2_babak2" {
source = "./module/ec2"
instance_name = "v011_2"
key_name = "dvh"
}
# resource "aws_instance" "babak" {
# ami = var.ami_id
# instance_type = var.instance_type
# key_name = var.key_name
# tags = {
# Name = var.machine_name
# Created_By = "terraform"
# }
# }
# resource "aws_instance" "babak2" {
# ami = "ami-08cd358d745620807"
# instance_type = "t2.micro"
# tags = {
# Created_By = "terraform"
# Name = "Airflow"
# }
# }
# terraform import aws_instance.babak3 i-01836e088c5f7f783
# resource "aws_instance" "babak3" {
# ami = "ami-086b3de06dafe36c5"
# key_name = var.key_name
# instance_type = "t2.micro"
# tags = {
# Name = "babak2"
# }
# }