generated from ministryofjustice/cloud-platform-terraform-template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
aws_codepipeline_nac.tf
64 lines (54 loc) · 2.73 KB
/
aws_codepipeline_nac.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
module "network-access-control-infrastructure" {
source = "./modules/ci-pipeline-webhook"
github_repo_id = "ministryofjustice/network-access-control-infrastructure"
git_branch_name = "main"
service_name = "core"
docker_image = "aws/codebuild/standard:7.0"
manual_production_deploy = true
production_plan = true
name = "network-access-control-infrastructure"
prefix_name = "${module.label.id}-nac"
codestar_connection_arn = aws_codestarconnections_connection.staff-infrastructure-moj.id
vpc_id = module.vpc.vpc_id
subnet_ids = module.vpc.private_subnets
dev_assume_role_arn = local.dev_assume_role_arn
production_assume_role_arn = local.production_assume_role_arn
pre_production_assume_role_arn = local.pre_production_assume_role_arn
tags = module.label.tags
}
module "network-access-control-server" {
source = "./modules/ci-pipeline-webhook"
github_repo_id = "ministryofjustice/network-access-control-server"
git_branch_name = "main"
service_name = "core"
docker_image = "aws/codebuild/standard:7.0"
manual_production_deploy = true
name = "network-access-control-server"
prefix_name = "${module.label.id}-nac-server"
codestar_connection_arn = aws_codestarconnections_connection.staff-infrastructure-moj.id
vpc_id = module.vpc.vpc_id
subnet_ids = module.vpc.private_subnets
dev_assume_role_arn = local.dev_assume_role_arn
production_assume_role_arn = local.production_assume_role_arn
pre_production_assume_role_arn = local.pre_production_assume_role_arn
privileged_mode = true
tags = module.label.tags
}
module "network-access-control-admin" {
source = "./modules/ci-pipeline-webhook"
github_repo_id = "ministryofjustice/network-access-control-admin"
git_branch_name = "main"
service_name = "core"
docker_image = "aws/codebuild/standard:7.0"
manual_production_deploy = true
name = "network-access-control-admin"
prefix_name = "${module.label.id}-nac-admin"
codestar_connection_arn = aws_codestarconnections_connection.staff-infrastructure-moj.id
vpc_id = module.vpc.vpc_id
subnet_ids = module.vpc.private_subnets
dev_assume_role_arn = local.dev_assume_role_arn
production_assume_role_arn = local.production_assume_role_arn
pre_production_assume_role_arn = local.pre_production_assume_role_arn
privileged_mode = true
tags = module.label.tags
}