forked from lirshindalman/test
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathprivate_module_main.tf
More file actions
36 lines (30 loc) · 818 Bytes
/
private_module_main.tf
File metadata and controls
36 lines (30 loc) · 818 Bytes
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
provider "aws" {
region = "us-east-1"
}
module "ec2" {
source = "git::https://github.com/maxamel/test_module.git"
ami_id = "ami-0c55b159cbfafe1f0"
instance_type = "t2.micro"
subnet_id = "subnet-12345678"
}
module "ec4" {
source = "git::https://github.com/maxamel/test_module2.git"
ami_id = "ami-0c55b159cbfafe1f0"
instance_type = "t2.micro"
subnet_id = "subnet-12345678"
}
module "ec6" {
source = "git::https://github.com/maxamel/test_module3.git"
ami_id = "ami-0c55b159cbfafe1f0"
instance_type = "t2.micro"
subnet_id = "subnet-12345678"
}
output "ec2_instance_id" {
value = module.ec2.instance_id
}
output "ec4_instance_id" {
value = module.ec4.instance_id
}
output "ec6_instance_id" {
value = module.ec6.instance_id
}