-
Notifications
You must be signed in to change notification settings - Fork 5
/
main.tf
58 lines (48 loc) · 1.54 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
51
52
53
54
55
56
57
58
provider "aws" {
region = "eu-west-1"
}
module "vpc" {
source = "clouddrove/vpc/aws"
version = "2.0.0"
name = "vpc"
environment = "test"
label_order = ["name", "environment"]
cidr_block = "10.0.0.0/16"
}
module "subnets" {
source = "clouddrove/subnet/aws"
version = "2.0.0"
name = "subnets"
environment = "test"
label_order = ["name", "environment"]
availability_zones = ["eu-west-1a", "eu-west-1b"]
vpc_id = module.vpc.vpc_id
type = "public"
igw_id = module.vpc.igw_id
cidr_block = module.vpc.vpc_cidr_block
ipv6_cidr_block = module.vpc.ipv6_cidr_block
}
module "ad" {
source = "clouddrove/active-directory/aws"
version = "1.0.1"
name = "ad"
environment = "test"
enabled = true
subnet_ids = module.subnets.public_subnet_id
ad_name = "ad.clouddrove.com"
label_order = ["name", "environment"]
ad_password = "xyz123@abc"
ip_whitelist = ["51.79.69.69/32", "212.121.146.139/32"]
enable_internet_access = true
user_enabled_as_local_administrator = true
}
module "workspace" {
source = "./../"
name = "workspace"
environment = "test"
enabled = true
workspace_username = "Administrator"
label_order = ["name", "environment"]
bundle_id = "wsb-8pmj7b7pq"
directory_id = module.ad.directory_id
}