-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
33 lines (30 loc) · 1.28 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
module "codebuild" {
source = "./codebuild"
project_name = var.project_name
region = var.region
codebuild_service_role_arn = module.iam.codebuild_service_role_arn
shared_artifacts_bucket = module.s3.shared_artifacts_bucket
lambda_functions_repo = var.lambda_functions_repo
}
module "iam" {
source = "./iam"
project_name = var.project_name
region = var.region
shared_artifacts_bucket_name = module.s3.shared_artifacts_bucket
codestarconnections_connection_arn = module.codepipeline.codestarconnections_connection_arn
}
module "codepipeline" {
source = "./codepipeline"
project_name = var.project_name
region = var.region
codepipeline_service_role_arn = module.iam.codepipeline_service_role_arn
shared_artifacts_bucket = module.s3.shared_artifacts_bucket
aws_codebuild_project_name = module.codebuild.aws_codebuild_project_name
lambda_functions_repo_name = var.lambda_functions_repo_name
lambda_functions_repo = var.lambda_functions_repo
}
module "s3" {
source = "./s3"
project_name = var.project_name
region = var.region
}