-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
58 lines (49 loc) · 1.92 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-2"
}
data "aws_region" "current" {
}
data "aws_caller_identity" "current" {
}
module "aws-glue-job" {
source = "./aws-glue-job"
iam_role = module.aws-iam.glue_iam_role
admin_user_password = module.aws-secrets-manager.random_password
subnet_1 = module.common-connections.subnet_1
redshift_role = module.aws-iam.redshift_iam_role
redshift_db_name = module.aws-redshift.redshift_db_name
redshift_db_user = module.aws-redshift.redshift_db_user
redshift_db_url_address = module.aws-redshift.redshift_db_url_address
aws_default_security_group = module.common-connections.aws_default_security_group
s3_bucket_name = module.aws-s3.s3_bucket_name
glue_job_file = "glue_job_file.py"
source_bucket = "data-profiler-output" #rename source bucket
source_files = "synthetic-islands" #rename source files
subnet_region_1 = module.common-connections.subnet_region_1
}
module "aws-iam" {
source = "./aws-iam"
}
module "aws-redshift" {
source = "./aws-redshift"
iam_role = module.aws-iam.redshift_iam_role
admin_user_password = module.aws-secrets-manager.random_password
subnet_1 = module.common-connections.subnet_1
subnet_2 = module.common-connections.subnet_2
subnet_3 = module.common-connections.subnet_3
}
module "aws-s3" {
source = "./aws-s3"
}
module "aws-sagemaker" {
source = "./aws-sagemaker"
iam_role = module.aws-iam.notebook_iam_role
aws_default_security_group = module.common-connections.aws_default_security_group
subnet_1 = module.common-connections.subnet_1
}
module "aws-secrets-manager" {
source = "./aws-secrets-manager"
}
module "common-connections" {
source = "./common-connections"
}