-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.tf
42 lines (38 loc) · 1.62 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
data "aws_subnet" "subnet_in_redshift_zone" {
filter {
name = "vpc-id"
values = [ data.aws_vpc.default.id ]
}
filter {
name = "availability-zone"
values = [ aws_redshift_cluster.default.availability_zone ]
}
}
module "terraform-aws-controlshift-redshift-sync" {
source = "controlshift/controlshift-redshift-sync/aws"
version = ">= 0.6"
aws_region = var.aws_region
controlshift_environment = var.controlshift_environment
controlshift_hostname = var.controlshift_hostname
controlshift_organization_slug = var.controlshift_organization_slug
failed_manifest_prefix = var.failed_manifest_prefix
failure_topic_name = var.failure_topic_name
failure_topic_name_for_run_glue_job_lambda = var.failure_topic_name_for_run_glue_job_lambda
glue_scripts_bucket_name = var.glue_scripts_bucket_name
glue_physical_connection_requirements = {
availability_zone = aws_redshift_cluster.default.availability_zone,
subnet_id = data.aws_subnet.subnet_in_redshift_zone.id,
security_group_id_list = aws_redshift_cluster.default.vpc_security_group_ids
}
manifest_bucket_name = var.manifest_bucket_name
manifest_prefix = var.manifest_prefix
receiver_timeout = var.receiver_timeout
redshift_cluster_identifier = aws_redshift_cluster.default.id
redshift_database_name = aws_redshift_cluster.default.database_name
redshift_password = var.redshift_password
redshift_schema = var.redshift_schema
redshift_username = var.redshift_username
success_topic_name = var.success_topic_name
success_topic_name_for_run_glue_job_lambda = var.success_topic_name_for_run_glue_job_lambda
vpc_id = data.aws_vpc.default.id
}