-
Notifications
You must be signed in to change notification settings - Fork 21
/
main.tf
83 lines (76 loc) · 4.54 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
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
provider "aws" {
region = var.aws_region
profile = var.aws_profile
ignore_tags {
key_prefixes = ["gsfc-ngap"]
}
}
## Local Variables
locals {
db_name = lower(var.db_name != null ? var.db_name : replace("${var.prefix}_orca", "-", "_"))
db_user_name = replace("${var.prefix}_orcauser", "-", "_")
tags = merge(var.tags, { Deployment = var.prefix }, { team = "ORCA", application = "ORCA" })
}
## Main ORCA module - This is what is called by end users.
## =============================================================================
module "orca" {
source = "./modules/orca"
## --------------------------
## Cumulus Variables
## --------------------------
## REQUIRED
buckets = var.buckets
lambda_subnet_ids = var.lambda_subnet_ids
permissions_boundary_arn = var.permissions_boundary_arn
prefix = var.prefix
rds_security_group_id = var.rds_security_group_id
system_bucket = var.system_bucket
vpc_id = var.vpc_id
db_cluster_identifier = var.db_cluster_identifier
## OPTIONAL
tags = local.tags
## --------------------------
## ORCA Variables
## --------------------------
## REQUIRED
db_admin_password = var.db_admin_password
db_host_endpoint = var.db_host_endpoint
db_user_password = var.db_user_password
dlq_subscription_email = var.dlq_subscription_email
orca_default_bucket = var.orca_default_bucket
orca_reports_bucket_name = var.orca_reports_bucket_name
## OPTIONAL
archive_recovery_queue_message_retention_time_seconds = var.archive_recovery_queue_message_retention_time_seconds
db_admin_username = var.db_admin_username
db_name = local.db_name
db_user_name = local.db_user_name
default_multipart_chunksize_mb = var.default_multipart_chunksize_mb
internal_report_queue_message_retention_time_seconds = var.internal_report_queue_message_retention_time_seconds
lambda_runtime = var.lambda_runtime
metadata_queue_message_retention_time_seconds = var.metadata_queue_message_retention_time_seconds
orca_default_recovery_type = var.orca_default_recovery_type
orca_default_storage_class = var.orca_default_storage_class
orca_delete_old_reconcile_jobs_frequency_cron = var.orca_delete_old_reconcile_jobs_frequency_cron
orca_ingest_lambda_memory_size = var.orca_ingest_lambda_memory_size
orca_ingest_lambda_timeout = var.orca_ingest_lambda_timeout
orca_internal_reconciliation_expiration_days = var.orca_internal_reconciliation_expiration_days
orca_reconciliation_lambda_memory_size = var.orca_reconciliation_lambda_memory_size
orca_reconciliation_lambda_timeout = var.orca_reconciliation_lambda_timeout
orca_recovery_buckets = var.orca_recovery_buckets
orca_recovery_complete_filter_prefix = var.orca_recovery_complete_filter_prefix
orca_recovery_expiration_days = var.orca_recovery_expiration_days
orca_recovery_lambda_memory_size = var.orca_recovery_lambda_memory_size
orca_recovery_lambda_timeout = var.orca_recovery_lambda_timeout
orca_recovery_retry_limit = var.orca_recovery_retry_limit
orca_recovery_retry_interval = var.orca_recovery_retry_interval
orca_recovery_retry_backoff = var.orca_recovery_retry_backoff
s3_inventory_queue_message_retention_time_seconds = var.s3_inventory_queue_message_retention_time_seconds
s3_report_frequency = var.s3_report_frequency
sqs_delay_time_seconds = var.sqs_delay_time_seconds
sqs_maximum_message_size = var.sqs_maximum_message_size
staged_recovery_queue_message_retention_time_seconds = var.staged_recovery_queue_message_retention_time_seconds
status_update_queue_message_retention_time_seconds = var.status_update_queue_message_retention_time_seconds
vpc_endpoint_id = var.vpc_endpoint_id
log_level = var.log_level
deploy_rds_cluster_role_association = var.deploy_rds_cluster_role_association
}