-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
50 lines (43 loc) · 1.1 KB
/
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
resource "tls_private_key" "ec2" {
algorithm = "RSA"
rsa_bits = 4096
}
resource "local_file" "private_key" {
content = tls_private_key.ec2.private_key_pem
filename = "ec2.pem"
file_permission = "0600"
}
module "us_east_2" {
source = "./vpc_template"
providers = {
aws = aws.ohio
}
public_key = tls_private_key.ec2.public_key_openssh
aws_access_key = var.aws_access_key
aws_secret_key = var.aws_secret_key
cidr_block = "10.68.0.0/16"
name_prefix = "aws-tf-lab-"
ubuntu_count = 1
ubuntu_type = "t3.small"
windows_count = 1
windows_type = "t3.small"
centos_count = 1
centos_type = "t3.small"
}
module "us_west_2" {
source = "./vpc_template"
providers = {
aws = aws.oregon
}
public_key = tls_private_key.ec2.public_key_openssh
aws_access_key = var.aws_access_key
aws_secret_key = var.aws_secret_key
cidr_block = "10.69.0.0/16"
name_prefix = "aws-tf-lab-"
ubuntu_count = 1
ubuntu_type = "t3.small"
windows_count = 1
windows_type = "t3.small"
centos_count = 1
centos_type = "t3.small"
}