generated from ministryofjustice/cloud-platform-terraform-template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
aws_codepipeline_dns_dhcp.tf
84 lines (73 loc) · 3.75 KB
/
aws_codepipeline_dns_dhcp.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
module "pttp-infrastructure-ci-pipeline-dns-dhcp" {
source = "./modules/ci-pipeline-webhook"
service_name = "core"
github_repo_id = "ministryofjustice/staff-device-dns-dhcp-infrastructure"
git_branch_name = "main"
name = "Staff-Device-DNS-DHCP-Infrastructure"
prefix_name = "${module.label.id}-dns-dhcp"
codestar_connection_arn = aws_codestarconnections_connection.staff-infrastructure-moj.id
vpc_id = module.vpc.vpc_id
subnet_ids = module.vpc.private_subnets
manual_production_deploy = true
production_plan = true
dev_assume_role_arn = local.dev_assume_role_arn
pre_production_assume_role_arn = local.pre_production_assume_role_arn
production_assume_role_arn = local.production_assume_role_arn
docker_image = "aws/codebuild/standard:7.0"
tags = module.label.tags
}
module "pttp-infrastructure-ci-pipeline-dns-container" {
source = "./modules/ci-pipeline-webhook"
service_name = "core"
github_repo_id = "ministryofjustice/staff-device-dns-server"
git_branch_name = "main"
name = "Staff-Device-DNS-Server"
prefix_name = "${module.label.id}-dns-server"
codestar_connection_arn = aws_codestarconnections_connection.staff-infrastructure-moj.id
vpc_id = module.vpc.vpc_id
subnet_ids = module.vpc.private_subnets
manual_production_deploy = true
dev_assume_role_arn = local.dev_assume_role_arn
pre_production_assume_role_arn = local.pre_production_assume_role_arn
production_assume_role_arn = local.production_assume_role_arn
docker_image = "aws/codebuild/standard:7.0"
privileged_mode = true
tags = module.label.tags
}
module "pttp-infrastructure-ci-pipeline-dhcp-container" {
source = "./modules/ci-pipeline-webhook"
service_name = "core"
github_repo_id = "ministryofjustice/staff-device-dhcp-server"
git_branch_name = "main"
name = "Staff-Device-DHCP-Server"
prefix_name = "${module.label.id}-kea-server"
codestar_connection_arn = aws_codestarconnections_connection.staff-infrastructure-moj.id
vpc_id = module.vpc.vpc_id
subnet_ids = module.vpc.private_subnets
manual_production_deploy = true
dev_assume_role_arn = local.dev_assume_role_arn
pre_production_assume_role_arn = local.pre_production_assume_role_arn
production_assume_role_arn = local.production_assume_role_arn
test_code_build_compute_type = "BUILD_GENERAL1_MEDIUM"
docker_image = "aws/codebuild/standard:7.0"
privileged_mode = true
tags = module.label.tags
}
module "pttp-infrastructure-ci-pipeline-dns-dhcp-admin-container" {
source = "./modules/ci-pipeline-webhook"
service_name = "core"
github_repo_id = "ministryofjustice/staff-device-dns-dhcp-admin"
git_branch_name = "main"
name = "Staff-Device-Admin-Portal"
prefix_name = "${module.label.id}-admin"
codestar_connection_arn = aws_codestarconnections_connection.staff-infrastructure-moj.id
vpc_id = module.vpc.vpc_id
subnet_ids = module.vpc.private_subnets
manual_production_deploy = true
dev_assume_role_arn = local.dev_assume_role_arn
pre_production_assume_role_arn = local.pre_production_assume_role_arn
production_assume_role_arn = local.production_assume_role_arn
docker_image = "aws/codebuild/standard:7.0"
privileged_mode = true
tags = module.label.tags
}