Skip to content

Commit

Permalink
All initial changes
Browse files Browse the repository at this point in the history
  • Loading branch information
P0NDER0SA committed Oct 2, 2024
1 parent a13c4c9 commit 88682c5
Show file tree
Hide file tree
Showing 242 changed files with 1,473 additions and 12,437 deletions.
5 changes: 0 additions & 5 deletions aws/cloudfront/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,3 @@ variable "s3_bucket_asset_bucket_id" {
variable "s3_bucket_asset_bucket_arn" {
type = string
}
variable "route53_zone_id" {
type = string
description = "Used by the scratch environment to reference cdssandbox in staging"
default = "/hostedzone/Z04028033PLSHVOO9ZJ1Z"
}
13 changes: 8 additions & 5 deletions aws/common/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ output "vpc_private_subnets_k8s" {
value = aws_subnet.notification-canada-ca-private-k8s.*.id
}


output "vpc_public_subnets" {
value = aws_subnet.notification-canada-ca-public.*.id
}
Expand Down Expand Up @@ -129,31 +128,35 @@ output "sns_deliveries_ca_central_arn" {
}

output "sns_deliveries_ca_central_name" {
value = var.cloudwatch_enabled ? aws_cloudwatch_log_group.sns_deliveries[0].name : ""
value = var.cloudwatch_enabled ? aws_cloudwatch_log_group.sns_deliveries[0].name : ""
sensitive = true
}

output "sns_deliveries_failures_ca_central_arn" {
value = var.cloudwatch_enabled ? aws_cloudwatch_log_group.sns_deliveries_failures[0].arn : ""
}

output "sns_deliveries_failures_ca_central_name" {
value = var.cloudwatch_enabled ? aws_cloudwatch_log_group.sns_deliveries_failures[0].name : ""
value = var.cloudwatch_enabled ? aws_cloudwatch_log_group.sns_deliveries_failures[0].name : ""
sensitive = true
}

output "sns_deliveries_us_west_2_arn" {
value = var.cloudwatch_enabled ? aws_cloudwatch_log_group.sns_deliveries_us_west_2[0].arn : ""
}

output "sns_deliveries_us_west_2_name" {
value = var.cloudwatch_enabled ? aws_cloudwatch_log_group.sns_deliveries_us_west_2[0].name : ""
value = var.cloudwatch_enabled ? aws_cloudwatch_log_group.sns_deliveries_us_west_2[0].name : ""
sensitive = true
}

output "sns_deliveries_failures_us_west_2_arn" {
value = var.cloudwatch_enabled ? aws_cloudwatch_log_group.sns_deliveries_failures_us_west_2[0].arn : ""
}

output "sns_deliveries_failures_us_west_2_name" {
value = var.cloudwatch_enabled ? aws_cloudwatch_log_group.sns_deliveries_failures_us_west_2[0].name : ""
value = var.cloudwatch_enabled ? aws_cloudwatch_log_group.sns_deliveries_failures_us_west_2[0].name : ""
sensitive = true
}

output "sqs_notify_internal_tasks_arn" {
Expand Down
294 changes: 0 additions & 294 deletions aws/common/variables.tf
Original file line number Diff line number Diff line change
@@ -1,294 +0,0 @@
variable "billing_tag_value" {
type = string
description = "Identifies the billing code."
}

variable "cloudwatch_opsgenie_alarm_webhook" {
description = "OpsGenie webhook used to trigger a page when there is a critical alarm."
type = string
sensitive = true
}

variable "cloudwatch_slack_webhook_critical_topic" {
description = "Slack webhook used to post critical alarm notifications."
type = string
sensitive = true
}

variable "cloudwatch_slack_webhook_warning_topic" {
description = "Slack webhook used to post warning alarm notifications."
type = string
sensitive = true
}

variable "cloudwatch_slack_webhook_general_topic" {
description = "Slack webhook used to post general alarm notifications."
type = string
sensitive = true
}

variable "slack_channel_critical_topic" {
type = string
}

variable "slack_channel_warning_topic" {
type = string
}

variable "slack_channel_general_topic" {
type = string
}

variable "sns_monthly_spend_limit" {
type = number
}

variable "sns_monthly_spend_limit_us_west_2" {
type = number
}

variable "celery_queue_prefix" {
type = string
# Matches the env NOTIFICATION_QUEUE_PREFIX
# in https://github.com/cds-snc/notification-manifests/blob/main/base/api-deployment.yaml
default = "eks-notification-canada-ca"
}

variable "sqs_visibility_timeout_default" {
type = number
# See SQS visibility timeout
# https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-visibility-timeout.html
default = 305
}

variable "sqs_visibility_timeout_priority_high" {
type = number
# See SQS visibility timeout
# https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-visibility-timeout.html
default = 26
}

variable "sqs_send_email_high_queue_name" {
type = string
# See QueueNames in
# https://github.com/cds-snc/notification-api/blob/master/app/config.py
default = "send-email-high"
}

variable "sqs_send_email_medium_queue_name" {
type = string
# See QueueNames in
# https://github.com/cds-snc/notification-api/blob/master/app/config.py
default = "send-email-medium"
}

variable "sqs_send_email_low_queue_name" {
type = string
# See QueueNames in
# https://github.com/cds-snc/notification-api/blob/master/app/config.py
default = "send-email-low"
}

variable "sqs_send_sms_high_queue_name" {
type = string
# See QueueNames in
# https://github.com/cds-snc/notification-api/blob/master/app/config.py
default = "send-sms-high"
}

variable "sqs_send_sms_medium_queue_name" {
type = string
# See QueueNames in
# https://github.com/cds-snc/notification-api/blob/master/app/config.py
default = "send-sms-medium"
}

variable "sqs_send_sms_low_queue_name" {
type = string
# See QueueNames in
# https://github.com/cds-snc/notification-api/blob/master/app/config.py
default = "send-sms-low"
}

variable "sqs_priority_queue_name" {
type = string
# See QueueNames in
# https://github.com/cds-snc/notification-api/blob/master/app/config.py
default = "priority-tasks"
}

variable "sqs_bulk_queue_name" {
type = string
# See QueueNames in
# https://github.com/cds-snc/notification-api/blob/master/app/config.py
default = "bulk-tasks"
}

variable "sqs_throttled_sms_queue_name" {
type = string
# See QueueNames in
# https://github.com/cds-snc/notification-api/blob/master/app/config.py
default = "send-throttled-sms-tasks"
}

variable "sqs_db_tasks_queue_name" {
type = string
# See QueueNames in
# https://github.com/cds-snc/notification-api/blob/master/app/config.py
default = "database-tasks"
}

variable "sqs_priority_db_tasks_queue_name" {
type = string
}

variable "sqs_normal_db_tasks_queue_name" {
type = string
}

variable "sqs_bulk_db_tasks_queue_name" {
type = string
}

variable "alarm_warning_document_download_bucket_size_gb" {
type = number
}

variable "alarm_warning_inflight_processed_created_delta_threshold" {
description = "Warning alarm threshold for the difference between processed and created inflights"
type = number
}

variable "alarm_critical_inflight_processed_created_delta_threshold" {
description = "Critical alarm threshold for the difference between processed and created inflights"
type = number
}

variable "alarm_warning_priority_inflight_processed_created_delta_threshold" {
description = "Warning alarm threshold for the difference between processed and created priority inflights"
type = number
}

variable "alarm_critical_priority_inflight_processed_created_delta_threshold" {
description = "Critical alarm threshold for the difference between processed and created priority inflights"
type = number
}

variable "alarm_warning_normal_inflight_processed_created_delta_threshold" {
description = "Warning alarm threshold for the difference between processed and created priority inflights"
type = number
}

variable "alarm_critical_normal_inflight_processed_created_delta_threshold" {
description = "Critical alarm threshold for the difference between processed and created priority inflights"
type = number
}

variable "alarm_warning_bulk_inflight_processed_created_delta_threshold" {
description = "Warning alarm threshold for the difference between processed and created priority inflights"
type = number
}

variable "alarm_critical_bulk_inflight_processed_created_delta_threshold" {
description = "Critical alarm threshold for the difference between processed and created priority inflights"
type = number
}

variable "alarm_warning_bulk_processed_created_delta_threshold" {
description = "Warning alarm threshold for the difference between processed and created bulk sends"
type = number
}

variable "alarm_critical_bulk_processed_created_delta_threshold" {
description = "Critical alarm threshold for the difference between processed and created bulk sends"
type = number
}

variable "alarm_warning_priority_bulk_processed_created_delta_threshold" {
description = "Warning alarm threshold for the difference between processed and created bulk sends"
type = number
}

variable "alarm_critical_priority_bulk_processed_created_delta_threshold" {
description = "Critical alarm threshold for the difference between processed and created bulk sends"
type = number
}

variable "alarm_warning_normal_bulk_processed_created_delta_threshold" {
description = "Warning alarm threshold for the difference between processed and created bulk sends"
type = number
}

variable "alarm_critical_normal_bulk_processed_created_delta_threshold" {
description = "Critical alarm threshold for the difference between processed and created bulk sends"
type = number
}

variable "alarm_warning_bulk_bulk_processed_created_delta_threshold" {
description = "Warning alarm threshold for the difference between processed and created bulk sends"
type = number
}

variable "alarm_critical_bulk_bulk_processed_created_delta_threshold" {
description = "Critical alarm threshold for the difference between processed and created bulk sends"
type = number
}

variable "alarm_critical_expired_inflights_threshold" {
description = "Critical alarm threshold for number of expired inflights in 5 minutes"
type = number
}

variable "force_destroy_s3" {
description = "Destroy S3 buckets even if there are files in them when running terraform destroy"
type = bool
default = false
}

variable "force_destroy_athena" {
description = "Destroy Athena workgroups even if there are tables in them when running terraform destroy"
type = bool
default = false
}

variable "athena_workgroup_name" {
description = "Set the name for the athena workgroup"
type = string
default = "primary"
}

variable "create_cbs_bucket" {
description = "Create the CBS bucket. Useful if this is a scratch deployment."
type = bool
default = false
}

variable "eks_cluster_name" {
description = "Name of EKS Cluster"
type = string
}

variable "account_budget_limit" {
description = "The dollar amount in USD that this AWS account should be budgeted to"
type = number
default = 3000

}

variable "account_budget_alert_emails" {
description = "List of people who should be alerted when budget thresholds are met"
type = list(any)
default = ["[email protected]", "[email protected]", "[email protected]", "[email protected]"]
}

variable "budget_sre_bot_webhook" {
description = "Slack webhook used to post budget alerts to the SRE bot"
type = string
sensitive = true
}

variable "vpc_cidr_block" {
description = "CIDR block for the VPC"
type = string
default = "10.0.0.0/16"
}
Loading

0 comments on commit 88682c5

Please sign in to comment.