-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Release 2.17.58 #1745
Release 2.17.58 #1745
Conversation
production: common✅ Terraform Init: Plan: 12 to add, 4 to change, 8 to destroy Show summary
Show planResource actions are indicated with the following symbols:
+ create
~ update in-place
-/+ destroy and then create replacement
Terraform will perform the following actions:
# module.notify_slack_critical.module.lambda.aws_lambda_function.this[0] will be updated in-place
~ resource "aws_lambda_function" "this" {
~ filename = "builds/18468d9b9b27e11ad9afde31a6a9771f5e726075d8792ba12d455202868bcc35.zip" -> "builds/1e622be40890679d302c03a6096c334d64151aab5aee3e073035598ee5e01db2.zip"
id = "notify-slack-critical"
~ last_modified = "2023-10-19T15:57:25.000+0000" -> (known after apply)
~ qualified_arn = "arn:aws:lambda:ca-central-1:296255494825:function:notify-slack-critical:9" -> (known after apply)
~ qualified_invoke_arn = "arn:aws:apigateway:ca-central-1:lambda:path/2015-03-31/functions/arn:aws:lambda:ca-central-1:296255494825:function:notify-slack-critical:9/invocations" -> (known after apply)
~ runtime = "python3.8" -> "python3.11"
tags = {}
~ version = "9" -> (known after apply)
# (23 unchanged attributes hidden)
# (4 unchanged blocks hidden)
}
# module.notify_slack_critical.module.lambda.aws_lambda_permission.current_version_triggers["AllowExecutionFromSNS"] must be replaced
-/+ resource "aws_lambda_permission" "current_version_triggers" {
~ id = "AllowExecutionFromSNS" -> (known after apply)
~ qualifier = "9" # forces replacement -> (known after apply) # forces replacement
+ statement_id_prefix = (known after apply)
# (5 unchanged attributes hidden)
}
# module.notify_slack_critical.module.lambda.local_file.archive_plan[0] will be created
+ resource "local_file" "archive_plan" {
+ content = jsonencode(
{
+ artifacts_dir = "builds"
+ build_plan = [
+ [
+ "zip",
+ ".terraform/modules/notify_slack_critical/functions/notify_slack.py",
+ null,
],
]
+ filename = "builds/1e622be40890679d302c03a6096c334d64151aab5aee3e073035598ee5e01db2.zip"
+ runtime = "python3.11"
}
)
+ content_base64sha256 = (known after apply)
+ content_base64sha512 = (known after apply)
+ content_md5 = (known after apply)
+ content_sha1 = (known after apply)
+ content_sha256 = (known after apply)
+ content_sha512 = (known after apply)
+ directory_permission = "0755"
+ file_permission = "0644"
+ filename = "builds/1e622be40890679d302c03a6096c334d64151aab5aee3e073035598ee5e01db2.plan.json"
+ id = (known after apply)
}
# module.notify_slack_critical.module.lambda.null_resource.archive[0] must be replaced
-/+ resource "null_resource" "archive" {
~ id = "1660527769517175245" -> (known after apply)
~ triggers = { # forces replacement
~ "filename" = "builds/18468d9b9b27e11ad9afde31a6a9771f5e726075d8792ba12d455202868bcc35.zip" -> "builds/1e622be40890679d302c03a6096c334d64151aab5aee3e073035598ee5e01db2.zip"
~ "timestamp" = "1738078973403694000" -> null
}
}
# module.notify_slack_general.module.lambda.aws_lambda_function.this[0] will be updated in-place
~ resource "aws_lambda_function" "this" {
~ filename = "builds/e8b93d66dbf2c7ef2479acf0c5f9890c23c1fcd432e81da57f3f5b5ec1061753.zip" -> "builds/2c26292ef7673e1f67a17eeecb7e7e2729a987663fdec0eb8f3028fce40d5ab4.zip"
id = "notify-slack-general"
~ last_modified = "2023-10-19T15:57:08.000+0000" -> (known after apply)
~ qualified_arn = "arn:aws:lambda:ca-central-1:296255494825:function:notify-slack-general:7" -> (known after apply)
~ qualified_invoke_arn = "arn:aws:apigateway:ca-central-1:lambda:path/2015-03-31/functions/arn:aws:lambda:ca-central-1:296255494825:function:notify-slack-general:7/invocations" -> (known after apply)
~ runtime = "python3.8" -> "python3.11"
tags = {}
~ version = "7" -> (known after apply)
# (23 unchanged attributes hidden)
# (4 unchanged blocks hidden)
}
# module.notify_slack_general.module.lambda.aws_lambda_permission.current_version_triggers["AllowExecutionFromSNS"] must be replaced
-/+ resource "aws_lambda_permission" "current_version_triggers" {
~ id = "AllowExecutionFromSNS" -> (known after apply)
~ qualifier = "7" # forces replacement -> (known after apply) # forces replacement
+ statement_id_prefix = (known after apply)
# (5 unchanged attributes hidden)
}
# module.notify_slack_general.module.lambda.local_file.archive_plan[0] will be created
+ resource "local_file" "archive_plan" {
+ content = jsonencode(
{
+ artifacts_dir = "builds"
+ build_plan = [
+ [
+ "zip",
+ ".terraform/modules/notify_slack_general/functions/notify_slack.py",
+ null,
],
]
+ filename = "builds/2c26292ef7673e1f67a17eeecb7e7e2729a987663fdec0eb8f3028fce40d5ab4.zip"
+ runtime = "python3.11"
}
)
+ content_base64sha256 = (known after apply)
+ content_base64sha512 = (known after apply)
+ content_md5 = (known after apply)
+ content_sha1 = (known after apply)
+ content_sha256 = (known after apply)
+ content_sha512 = (known after apply)
+ directory_permission = "0755"
+ file_permission = "0644"
+ filename = "builds/2c26292ef7673e1f67a17eeecb7e7e2729a987663fdec0eb8f3028fce40d5ab4.plan.json"
+ id = (known after apply)
}
# module.notify_slack_general.module.lambda.null_resource.archive[0] must be replaced
-/+ resource "null_resource" "archive" {
~ id = "1488285664679391456" -> (known after apply)
~ triggers = { # forces replacement
~ "filename" = "builds/e8b93d66dbf2c7ef2479acf0c5f9890c23c1fcd432e81da57f3f5b5ec1061753.zip" -> "builds/2c26292ef7673e1f67a17eeecb7e7e2729a987663fdec0eb8f3028fce40d5ab4.zip"
~ "timestamp" = "1738078965396442000" -> null
}
}
# module.notify_slack_ok.module.lambda.aws_lambda_function.this[0] will be updated in-place
~ resource "aws_lambda_function" "this" {
~ filename = "builds/7877f6dfc99e932437e08c1de7ba322bc1d72a6f3fe5b5c5e8b6eacee4f239eb.zip" -> "builds/c0bc8d02f0098b178b87a31e448515f17dfa6165f117bbeca9526aa66b9266f3.zip"
id = "notify-slack-ok"
~ last_modified = "2023-10-19T15:57:13.000+0000" -> (known after apply)
~ qualified_arn = "arn:aws:lambda:ca-central-1:296255494825:function:notify-slack-ok:4" -> (known after apply)
~ qualified_invoke_arn = "arn:aws:apigateway:ca-central-1:lambda:path/2015-03-31/functions/arn:aws:lambda:ca-central-1:296255494825:function:notify-slack-ok:4/invocations" -> (known after apply)
~ runtime = "python3.8" -> "python3.11"
tags = {}
~ version = "4" -> (known after apply)
# (23 unchanged attributes hidden)
# (4 unchanged blocks hidden)
}
# module.notify_slack_ok.module.lambda.aws_lambda_permission.current_version_triggers["AllowExecutionFromSNS"] must be replaced
-/+ resource "aws_lambda_permission" "current_version_triggers" {
~ id = "AllowExecutionFromSNS" -> (known after apply)
~ qualifier = "4" # forces replacement -> (known after apply) # forces replacement
+ statement_id_prefix = (known after apply)
# (5 unchanged attributes hidden)
}
# module.notify_slack_ok.module.lambda.local_file.archive_plan[0] will be created
+ resource "local_file" "archive_plan" {
+ content = jsonencode(
{
+ artifacts_dir = "builds"
+ build_plan = [
+ [
+ "zip",
+ ".terraform/modules/notify_slack_ok/functions/notify_slack.py",
+ null,
],
]
+ filename = "builds/c0bc8d02f0098b178b87a31e448515f17dfa6165f117bbeca9526aa66b9266f3.zip"
+ runtime = "python3.11"
}
)
+ content_base64sha256 = (known after apply)
+ content_base64sha512 = (known after apply)
+ content_md5 = (known after apply)
+ content_sha1 = (known after apply)
+ content_sha256 = (known after apply)
+ content_sha512 = (known after apply)
+ directory_permission = "0755"
+ file_permission = "0644"
+ filename = "builds/c0bc8d02f0098b178b87a31e448515f17dfa6165f117bbeca9526aa66b9266f3.plan.json"
+ id = (known after apply)
}
# module.notify_slack_ok.module.lambda.null_resource.archive[0] must be replaced
-/+ resource "null_resource" "archive" {
~ id = "392360552563999416" -> (known after apply)
~ triggers = { # forces replacement
~ "filename" = "builds/7877f6dfc99e932437e08c1de7ba322bc1d72a6f3fe5b5c5e8b6eacee4f239eb.zip" -> "builds/c0bc8d02f0098b178b87a31e448515f17dfa6165f117bbeca9526aa66b9266f3.zip"
~ "timestamp" = "1738078973426798200" -> null
}
}
# module.notify_slack_warning.module.lambda.aws_lambda_function.this[0] will be updated in-place
~ resource "aws_lambda_function" "this" {
~ filename = "builds/b02ab3a0ae7399c2cfa86e739b9fa00da6ec254197e68e97db7a6f04baae10d0.zip" -> "builds/19863096150fa1a6df6f86bf4faddd68a0875c2a3c199bd42c44f533dcd009d3.zip"
id = "notify-slack-warning"
~ last_modified = "2023-10-19T15:57:19.000+0000" -> (known after apply)
~ qualified_arn = "arn:aws:lambda:ca-central-1:296255494825:function:notify-slack-warning:9" -> (known after apply)
~ qualified_invoke_arn = "arn:aws:apigateway:ca-central-1:lambda:path/2015-03-31/functions/arn:aws:lambda:ca-central-1:296255494825:function:notify-slack-warning:9/invocations" -> (known after apply)
~ runtime = "python3.8" -> "python3.11"
tags = {}
~ version = "9" -> (known after apply)
# (23 unchanged attributes hidden)
# (4 unchanged blocks hidden)
}
# module.notify_slack_warning.module.lambda.aws_lambda_permission.current_version_triggers["AllowExecutionFromSNS"] must be replaced
-/+ resource "aws_lambda_permission" "current_version_triggers" {
~ id = "AllowExecutionFromSNS" -> (known after apply)
~ qualifier = "9" # forces replacement -> (known after apply) # forces replacement
+ statement_id_prefix = (known after apply)
# (5 unchanged attributes hidden)
}
# module.notify_slack_warning.module.lambda.local_file.archive_plan[0] will be created
+ resource "local_file" "archive_plan" {
+ content = jsonencode(
{
+ artifacts_dir = "builds"
+ build_plan = [
+ [
+ "zip",
+ ".terraform/modules/notify_slack_warning/functions/notify_slack.py",
+ null,
],
]
+ filename = "builds/19863096150fa1a6df6f86bf4faddd68a0875c2a3c199bd42c44f533dcd009d3.zip"
+ runtime = "python3.11"
}
)
+ content_base64sha256 = (known after apply)
+ content_base64sha512 = (known after apply)
+ content_md5 = (known after apply)
+ content_sha1 = (known after apply)
+ content_sha256 = (known after apply)
+ content_sha512 = (known after apply)
+ directory_permission = "0755"
+ file_permission = "0644"
+ filename = "builds/19863096150fa1a6df6f86bf4faddd68a0875c2a3c199bd42c44f533dcd009d3.plan.json"
+ id = (known after apply)
}
# module.notify_slack_warning.module.lambda.null_resource.archive[0] must be replaced
-/+ resource "null_resource" "archive" {
~ id = "4081161665689811458" -> (known after apply)
~ triggers = { # forces replacement
~ "filename" = "builds/b02ab3a0ae7399c2cfa86e739b9fa00da6ec254197e68e97db7a6f04baae10d0.zip" -> "builds/19863096150fa1a6df6f86bf4faddd68a0875c2a3c199bd42c44f533dcd009d3.zip"
~ "timestamp" = "1738078973420237000" -> null
}
}
Plan: 12 to add, 4 to change, 8 to destroy.
Warning: Argument is deprecated
with aws_s3_bucket.csv_bucket,
on s3.tf line 5, in resource "aws_s3_bucket" "csv_bucket":
5: resource "aws_s3_bucket" "csv_bucket" {
Use the aws_s3_bucket_lifecycle_configuration resource instead
(and 68 more similar warnings elsewhere)
─────────────────────────────────────────────────────────────────────────────
Saved the plan to: plan.tfplan
To perform exactly these actions, run the following command to apply:
terraform apply "plan.tfplan"
Show Conftest resultsWARN - plan.json - main - Missing Common Tags: ["aws_athena_workgroup.ad_hoc"]
WARN - plan.json - main - Missing Common Tags: ["aws_athena_workgroup.build_tables"]
WARN - plan.json - main - Missing Common Tags: ["aws_athena_workgroup.primary"]
WARN - plan.json - main - Missing Common Tags: ["aws_athena_workgroup.support"]
WARN - plan.json - main - Missing Common Tags: ["aws_budgets_budget.cloudwatch_data_scanned"]
WARN - plan.json - main - Missing Common Tags: ["aws_budgets_budget.notify_global"]
WARN - plan.json - main - Missing Common Tags: ["aws_cloudwatch_event_rule.aws_health[0]"]
WARN - plan.json - main - Missing Common Tags: ["aws_cloudwatch_log_group.route53_resolver_query_log[0]"]
WARN - plan.json - main - Missing Common Tags: ["aws_cloudwatch_log_group.sns_deliveries[0]"]
WARN - plan.json - main - Missing Common Tags: ["aws_cloudwatch_log_group.sns_deliveries_failures[0]"]
WARN - plan.json - main - Missing Common Tags: ["aws_cloudwatch_log_group.sns_deliveries_failures_us_west_2[0]"]
WARN - plan.json - main - Missing Common Tags: ["aws_cloudwatch_log_group.sns_deliveries_us_west_2[0]"]
WARN - plan.json - main - Missing Common Tags: ["aws_cloudwatch_metric_alarm.bulk-bulk-not-being-processed-critical[0]"]
WARN - plan.json - main - Missing Common Tags: ["aws_cloudwatch_metric_alarm.bulk-bulk-not-being-processed-warning[0]"]
WARN - plan.json - main - Missing Common Tags: ["aws_cloudwatch_metric_alarm.bulk-inflights-not-being-processed-critical[0]"]
WARN - plan.json - main - Missing Common Tags: ["aws_cloudwatch_metric_alarm.bulk-inflights-not-being-processed-warning[0]"]
WARN - plan.json - main - Missing Common Tags: ["aws_cloudwatch_metric_alarm.bulk-not-being-processed-critical[0]"]
WARN - plan.json - main - Missing Common Tags: ["aws_cloudwatch_metric_alarm.bulk-not-being-processed-warning[0]"]
WARN - plan.json - main - Missing Common Tags: ["aws_cloudwatch_metric_alarm.contact-3-500-error-15-minutes-critical[0]"]
WARN - plan.json - main - Missing Common... |
production: eks✅ Terraform Init: Plan: 0 to add, 1 to change, 0 to destroy Show summary
Show planResource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
# module.sentinel_forwarder.aws_lambda_function.sentinel_forwarder will be updated in-place
~ resource "aws_lambda_function" "sentinel_forwarder" {
id = "sentinel-cloud-watch-forwarder"
~ layers = [
~ (sensitive value),
]
tags = {
"CostCentre" = "notification-canada-ca-production"
}
# (28 unchanged attributes hidden)
# (4 unchanged blocks hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.
─────────────────────────────────────────────────────────────────────────────
Saved the plan to: plan.tfplan
To perform exactly these actions, run the following command to apply:
terraform apply "plan.tfplan"
Show Conftest resultsWARN - plan.json - main - Missing Common Tags: ["aws_acm_certificate.client_vpn"]
WARN - plan.json - main - Missing Common Tags: ["aws_acm_certificate.notification-canada-ca"]
WARN - plan.json - main - Missing Common Tags: ["aws_acm_certificate.notification-canada-ca-alt[0]"]
WARN - plan.json - main - Missing Common Tags: ["aws_alb.notification-canada-ca"]
WARN - plan.json - main - Missing Common Tags: ["aws_alb_listener.internal_alb_tls"]
WARN - plan.json - main - Missing Common Tags: ["aws_alb_listener.notification-canada-ca"]
WARN - plan.json - main - Missing Common Tags: ["aws_alb_target_group.internal_nginx_http"]
WARN - plan.json - main - Missing Common Tags: ["aws_alb_target_group.notification-canada-ca-admin"]
WARN - plan.json - main - Missing Common Tags: ["aws_alb_target_group.notification-canada-ca-api"]
WARN - plan.json - main - Missing Common Tags: ["aws_alb_target_group.notification-canada-ca-document"]
WARN - plan.json - main - Missing Common Tags: ["aws_alb_target_group.notification-canada-ca-document-api"]
WARN - plan.json - main - Missing Common Tags: ["aws_alb_target_group.notification-canada-ca-documentation"]
WARN - plan.json - main - Missing Common Tags: ["aws_cloudwatch_log_group.blazer[0]"]
WARN - plan.json - main - Missing Common Tags: ["aws_cloudwatch_log_group.notification-canada-ca-eks-application-logs[0]"]
WARN - plan.json - main - Missing Common Tags: ["aws_cloudwatch_log_group.notification-canada-ca-eks-cluster-logs[0]"]
WARN - plan.json - main - Missing Common Tags: ["aws_cloudwatch_log_group.notification-canada-ca-eks-prometheus-logs[0]"]
WARN - plan.json - main - Missing Common Tags: ["aws_cloudwatch_metric_alarm.admin-evicted-pods[0]"]
WARN - plan.json - main - Missing Common Tags: ["aws_cloudwatch_metric_alarm.admin-pods-high-cpu-warning[0]"]
WARN - plan.json - main - Missing Common Tags: ["aws_cloudwatch_metric_alarm.admin-pods-high-memory-warning[0]"]
WARN - plan.json - main - Missing Common Tags:... |
production: rds✅ Terraform Init: Plan: 24 to add, 0 to change, 0 to destroy Show summary
✂ Warning: plan has been truncated! See the full plan in the logs. Show planResource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# aws_cloudwatch_metric_alarm.db-free-local-storage-critical[0] will be created
+ resource "aws_cloudwatch_metric_alarm" "db-free-local-storage-critical" {
+ actions_enabled = true
+ alarm_actions = [
+ "arn:aws:sns:ca-central-1:296255494825:alert-critical",
]
+ alarm_description = "Free local storage of instance is less than 5GB"
+ alarm_name = "db-free-local-storage-critical-instance-0"
+ arn = (known after apply)
+ comparison_operator = "LessThanThreshold"
+ dimensions = {
+ "DBInstanceIdentifier" = "notification-canada-ca-production-instance-0"
}
+ evaluate_low_sample_count_percentiles = (known after apply)
+ evaluation_periods = 1
+ id = (known after apply)
+ metric_name = "FreeLocalStorage"
+ namespace = "AWS/RDS"
+ period = 60
+ statistic = "Average"
+ tags_all = (known after apply)
+ threshold = 5368709120
+ treat_missing_data = "notBreaching"
}
# aws_cloudwatch_metric_alarm.db-free-local-storage-critical[1] will be created
+ resource "aws_cloudwatch_metric_alarm" "db-free-local-storage-critical" {
+ actions_enabled = true
+ alarm_actions = [
+ "arn:aws:sns:ca-central-1:296255494825:alert-critical",
]
+ alarm_description = "Free local storage of instance is less than 5GB"
+ alarm_name = "db-free-local-storage-critical-instance-1"
+ arn = (known after apply)
+ comparison_operator = "LessThanThreshold"
+ dimensions = {
+ "DBInstanceIdentifier" = "notification-canada-ca-production-instance-1"
}
+ evaluate_low_sample_count_percentiles = (known after apply)
+ evaluation_periods = 1
+ id = (known after apply)
+ metric_name = "FreeLocalStorage"
+ namespace = "AWS/RDS"
+ period = 60
+ statistic = "Average"
+ tags_all = (known after apply)
+ threshold = 5368709120
+ treat_missing_data = "notBreaching"
}
# aws_cloudwatch_metric_alarm.db-free-local-storage-critical[2] will be created
+ resource "aws_cloudwatch_metric_alarm" "db-free-local-storage-critical" {
+ actions_enabled = true
+ alarm_actions = [
+ "arn:aws:sns:ca-central-1:296255494825:alert-critical",
]
+ alarm_description = "Free local storage of instance is less than 5GB"
+ alarm_name = "db-free-local-storage-critical-instance-2"
+ arn = (known after apply)
+ comparison_operator = "LessThanThreshold"
+ dimensions = {
+ "DBInstanceIdentifier" = "notification-canada-ca-production-instance-2"
}
+ evaluate_low_sample_count_percentiles = (known after apply)
+ evaluation_periods = 1
+ id = (known after apply)
+ metric_name = "FreeLocalStorage"
+ namespace = "AWS/RDS"
+ period = 60
+ statistic = "Average"
+ tags_all = (known after apply)
+ threshold = 5368709120
+ treat_missing_data = "notBreaching"
}
# aws_cloudwatch_metric_alarm.db-free-local-storage-warning[0] will be created
+ resource "aws_cloudwatch_metric_alarm" "db-free-local-storage-warning" {
+ actions_enabled = true
+ alarm_actions = [
+ "arn:aws:sns:ca-central-1:296255494825:alert-warning",
]
+ alarm_description = "Free local storage of instance is less than 10GB"
+ alarm_name = "db-free-local-storage-warning-instance-0"
+ arn = (known after apply)
+ comparison_operator = "LessThanThreshold"
+ dimensions = {
+ "DBInstanceIdentifier" = "notification-canada-ca-production-instance-0"
}
+ evaluate_low_sample_count_percentiles = (known after apply)
+ evaluation_periods = 1
+ id = (known after apply)
+ metric_name = "FreeLocalStorage"
+ namespace = "AWS/RDS"
+ period = 60
+ statistic = "Average"
+ tags_all = (known after apply)
+ threshold = 10737418240
+ treat_missing_data = "notBreaching"
}
# aws_cloudwatch_metric_alarm.db-free-local-storage-warning[1] will be created
+ resource "aws_cloudwatch_metric_alarm" "db-free-local-storage-warning" {
+ actions_enabled = true
+ alarm_actions = [
+ "arn:aws:sns:ca-central-1:296255494825:alert-warning",
]
+ alarm_description = "Free local storage of instance is less than 10GB"
+ alarm_name = "db-free-local-storage-warning-instance-1"
+ arn = (known after apply)
+ comparison_operator = "LessThanThreshold"
+ dimensions = {
+ "DBInstanceIdentifier" = "notification-canada-ca-production-instance-1"
}
+ evaluate_low_sample_count_percentiles = (known after apply)
+ evaluation_periods = 1
+ id = (known after apply)
+ metric_name = "FreeLocalStorage"
+ namespace = "AWS/RDS"
+ period = 60
+ statistic = "Average"
+ tags_all = (known after apply)
+ threshold = 10737418240
+ treat_missing_data = "notBreaching"
}
# aws_cloudwatch_metric_alarm.db-free-local-storage-warning[2] will be created
+ resource "aws_cloudwatch_metric_alarm" "db-free-local-storage-warning" {
+ actions_enabled = true
+ alarm_actions = [
+ "arn:aws:sns:ca-central-1:296255494825:alert-warning",
]
+ alarm_description = "Free local storage of instance is less than 10GB"
+ alarm_name = "db-free-local-storage-warning-instance-2"
+ arn = (known after apply)
+ comparison_operator = "LessThanThreshold"
+ dimensions = {
+ "DBInstanceIdentifier" = "notification-canada-ca-production-instance-2"
}
+ evaluate_low_sample_count_percentiles = (known after apply)
+ evaluation_periods = 1
+ id = (known after apply)
+ metric_name = "FreeLocalStorage"
+ namespace = "AWS/RDS"
+ period = 60
+ statistic = "Average"
+ tags_all = (known after apply)
+ threshold = 10737418240
+ treat_missing_data = "notBreaching"
}
# aws_cloudwatch_metric_alarm.high-db-cpu-critical[0] will be created
+ resource "aws_cloudwatch_metric_alarm" "high-db-cpu-critical" {
+ actions_enabled = true
+ alarm_actions = [
+ "arn:aws:sns:ca-central-1:296255494825:alert-critical",
]
+ alarm_description = "CPU usage of the RDS instance > 80%"
+ alarm_name = "high-db-cpu-critical-instance-0"
+ arn = (known after apply)
+ comparison_operator = "GreaterThanThreshold"
+ dimensions = {
+ "DBInstanceIdentifier" = "notification-canada-ca-production-instance-0"
}
+ evaluate_low_sample_count_percentiles = (known after apply)
+ evaluation_periods = 1
+ id = (known after apply)
+ metric_name = "CPUUtilization"
+ namespace = "AWS/RDS"
+ period = 60
+ statistic = "Average"
+ tags_all = (known after apply)
+ threshold = 80
+ treat_missing_data = "notBreaching"
}
# aws_cloudwatch_metric_alarm.high-db-cpu-critical[1] will be created
+ resource "aws_cloudwatch_metric_alarm" "high-db-cpu-critical" {
+ actions_enabled = true
+ alarm_actions = [
+ "arn:aws:sns:ca-central-1:296255494825:alert-critical",
]
+ alarm_description = "CPU usage of the RDS instance > 80%"
+ alarm_name = "high-db-cpu-critical-instance-1"
+ arn = (known after apply)
+ comparison_operator = "GreaterThanThreshold"
+ dimensions = {
+ "DBInstanceIdentifier" = "notification-canada-ca-production-instance-1"
}
+ evaluate_low_sample_count_percentiles = (known after apply)
+ evaluation_periods = 1
+ id = (known after apply)
+ metric_name = "CPUUtilization"
+ namespace = "AWS/RDS"
+ period = 60
+ statistic = "Average"
+ tags_all = (known after apply)
+ threshold = 80
+ treat_missing_data = "notBreaching"
}
# aws_cloudwatch_metric_alarm.high-db-cpu-critical[2] will be created
+ resource "aws_cloudwatch_metric_alarm" "high-db-cpu-critical" {
+ actions_enabled = true
+ alarm_actions = [
+ "arn:aws:sns:ca-central-1:296255494825:alert-critical",
]
+ alarm_description = "CPU usage of the RDS instance > 80%"
+ alarm_name = "high-db-cpu-critical-instance-2"
+ arn = (known after apply)
+ comparison_operator = "GreaterThanThreshold"
+ dimensions = {
+ "DBInstanceIdentifier" = "notification-canada-ca-production-instance-2"
}
+ evaluate_low_sample_count_percentiles = (known after apply)
+ evaluation_periods = 1
+ id = (known after apply)
+ metric_name = "CPUUtilization"
+ namespace = "AWS/RDS"
+ period = 60
+ statistic = "Average"
+ tags_all = (known after apply)
+ threshold = 80
+ treat_missing_data = "notBreaching"
}
# aws_cloudwatch_metric_alarm.high-db-cpu-warning[0] will be created
+ resource "aws_cloudwatch_metric_alarm" "high-db-cpu-warning" {
+ actions_enabled = true
+ alarm_actions = [
+ "arn:aws:sns:ca-central-1:296255494825:alert-warning",
]
+ alarm_description = "CPU usage of the RDS instance > 50%"
+ alarm_name = "high-db-cpu-warning-instance-0"
+ arn = (known after apply)
+ comparison_operator = "GreaterThanThreshold"
+ dimensions = {
+ "DBInstanceIdentifier" = "notification-canada-ca-production-instance-0"
}
+ evaluate_low_sample_count_percentiles = (known after apply)
+ evaluation_periods = 1
+ id = (known after apply)
+ metric_name = "CPUUtilization"
+ namespace = "AWS/RDS"
+ period = 60
+ statistic = "Average"
+ tags_all = (known after apply)
+ threshold = 50
+ treat_missing_data = "notBreaching"
}
# aws_cloudwatch_metric_alarm.high-db-cpu-warning[1] will be created
+ resource "aws_cloudwatch_metric_alarm" "high-db-cpu-warning" {
+ actions_enabled = true
+ alarm_actions = [
+ "arn:aws:sns:ca-central-1:296255494825:alert-warning",
]
+ alarm_description = "CPU usage of the RDS instance > 50%"
+ alarm_name = "high-db-cpu-warning-instance-1"
+ arn = (known after apply)
+ comparison_operator = "GreaterThanThreshold"
+ dimensions = {
+ "DBInstanceIdentifier" = "notification-canada-ca-production-instance-1"
}
+ evaluate_low_sample_count_percentiles = (known after apply)
+ evaluation_periods = 1
+ id = (known after apply)
+ metric_name = "CPUUtilization"
+ namespace = "AWS/RDS"
+ period = 60
+ statistic = "Average"
+ tags_all = (known after apply)
+ threshold = 50
+ treat_missing_data = "notBreaching"
}
# aws_cloudwatch_metric_alarm.high-db-cpu-warning[2] will be created
+ resource "aws_cloudwatch_metric_alarm" "high-db-cpu-warning" {
+ actions_enabled = true
+ alarm_actions = [
+ "arn:aws:sns:ca-central-1:296255494825:alert-warning",
]
+ alarm_description = "CPU usage of the RDS instance > 50%"
+ alarm_name = "high-db-cpu-warning-instance-2"
+ arn = (known after apply)
+ comparison_operator = "GreaterThanThreshold"
+ dimensions = {
+ "DBInstanceIdentifier" = "notification-canada-ca-production-instance-2"
}
+ evaluate_low_sample_count_percentiles = (known after apply)
+ evaluation_periods = 1
+ id = (known after apply)
+ metric_name = "CPUUtilization"
+ namespace = "AWS/RDS"
+ period = 60
+ statistic = "Average"
+ tags_all = (known after apply)
+ threshold = 50
+ treat_missing_data = "notBreaching"
}
# aws_cloudwatch_metric_alarm.high-dbload-critical[0] will be created
+ resource "aws_cloudwatch_metric_alarm" "high-dbload-critical" {
+ actions_enabled = true
+ alarm_actions = [
+ "arn:aws:sns:ca-central-1:296255494825:alert-critical",
]
+ alarm_description = "DBLoad > 100. Check if there's a query that is causing this."
+ alarm_name = "high-dbload-critical-instance-0"
+ arn = (known after apply)
+ comparison_operator = "GreaterThanThreshold"
+ dimensions = {
+ "DBInstanceIdentifier" = "notification-canada-ca-production-instance-0"
}
+ evaluate_low_sample_count_percentiles = (known after apply)
+ evaluation_periods = 1
+ id = (known after apply)
+ metric_name = "DBLoad"
+ namespace = "AWS/RDS"
+ period = 60
+ statistic = "Average"
+ tags_all = (known after apply)
+ threshold = 100
+ treat_missing_data = "notBreaching"
}
# aws_cloudwatch_metric_alarm.high-dbload-critical[1] will be created
+ resource "aws_cloudwatch_metric_alarm" "high-dbload-critical" {
+ actions_enabled = true
+ alarm_actions = [
+ "arn:aws:sns:ca-central-1:296255494825:alert-critical",
]
+ alarm_description = "DBLoad > 100. Check if there's a query that is causing this."
+ alarm_name = "high-dbload-critical-instance-1"
+ arn = (known after apply)
+ comparison_operator = "GreaterThanThreshold"
+ dimensions = {
+ "DBInstanceIdentifier" = "notification-canada-ca-production-instance-1"
}
+ evaluate_low_sample_count_percentiles = (known after apply)
+ evaluation_periods = 1
+ id = (known after apply)
+ metric_name = "DBLoad"
+ namespace = "AWS/RDS"
+ period = 60
+ statistic = "Average"
+ tags_all = (known after apply)
+ threshold = 100
+ treat_missing_data = "notBreaching"
}
# aws_cloudwatch_metric_alarm.high-dbload-critical[2] will be created
+ resource "aws_cloudwatch_metric_alarm" "high-dbload-critical" {
+ actions_enabled = true
+ alarm_actions = [
+ "arn:aws:sns:ca-central-1:296255494825:alert-critical",
]
+ alarm_description = "DBLoad > 100. Check if there's a query that is causing this."
+ alarm_name = "high-dbload-critical-instance-2"
+ arn = (known after apply)
+ comparison_operator = "GreaterThanThreshold"
+ dimensions = {
+ "DBInstanceIdentifier" = "notification-canada-ca-production-instance-2"
}
+ evaluate_low_sample_count_percentiles = (known after apply)
+ evaluation_periods = 1
+ id = (known after apply)
+ metric_name = "DBLoad"
+ namespace = "AWS/RDS"
+ period = 60
+ statistic = "Average"
+ tags_all = (known after apply)
+ threshold = 100
+ treat_missing_data = "notBreaching"
}
# aws_cloudwatch_metric_alarm.high-dbload-warning[0] will be created
+ resource "aws_cloudwatch_metric_alarm" "high-dbload-warning" {
+ actions_enabled = true
+ alarm_actions = [
+ "arn:aws:sns:ca-central-1:296255494825:alert-warning",
]
+ alarm_description = "DBLoad > 1. Check if there's a query that is causing this."
+ alarm_name = "high-dbload-warning-instance-0"
+ arn = (known after apply)
+ comparison_operator = "GreaterThanThreshold"
+ dimensions = {
+ "DBInstanceIdentifier" = "notification-canada-ca-production-instance-0"
}
+ evaluate_low_sample_count_percentiles = (known after apply)
+ evaluation_periods = 1
+ id = (known after apply)
+ metric_name = "DBLoad"
+ namespace = "AWS/RDS"
+ period = 60
+ statistic = "Average"
+ tags_all = (known after apply)
+ threshold = 1
+ treat_missing_data = "notBreaching"
}
# aws_cloudwatch_metric_alarm.high-dbload-warning[1] will be created
+ resource "aws_cloudwatch_metric_alarm" "high-dbload-warning" {
+ actions_enabled = true
+ alarm_actions = [
+ "arn:aws:sns:ca-central-1:296255494825:alert-warning",
]
+ alarm_description = "DBLoad > 1. Check if there's a query that is causing this."
+ alarm_name = "high-dbload-warning-instance-1"
+ arn = (known after apply)
+ comparison_operator = "GreaterThanThreshold"
+ dimensions = {
+ "DBInstanceIdentifier" = "notification-canada-ca-production-instance-1"
}
+ evaluate_low_sample_count_percentiles = (known after apply)
+ evaluation_periods = 1
+ id = (known after apply)
+ metric_name = "DBLoad"
+ namespace = "AWS/RDS"
+ period = 60
+ statistic = "Average"
+ tags_all = (known after apply)
+ threshold = 1
+ treat_missing_data = "notBreaching"
}
# aws_cloudwatch_metric_alarm.high-dbload-warning[2] will be created
+ resource "aws_cloudwatch_metric_alarm" "high-dbload-warning" {
+ actions_enabled = true
+ alarm_actions = [
+ "arn:aws:sns:ca-central-1:296255494825:alert-warning",
]
+ alarm_description = "DBLoad > 1. Check if there's a query that is causing this."
+ alarm_name = "high-dbload-warning-instance-2"
+ arn = (known after apply)
+ comparison_operator = "GreaterThanThreshold"
+ dimensions = {
+ "DBInstanceIdentifier" = "notification-canada-ca-production-instance-2"
}
+ evaluate_low_sample_count_percentiles = (known after apply)
+ evaluation_periods = 1
+ id = (known after apply)
+ metric_name = "DBLoad"
+ namespace = "AWS/RDS"
+ period = 60
+ statistic = "Average"
+ tags_all = (known after apply)
+ threshold = 1
+ treat_missing_data = "notBreaching"
}
# aws_cloudwatch_metric_alarm.low-db-memory-critical[0] will be created
+ resource "aws_cloudwatch_metric_alarm" "low-db-memory-critical" {
+ actions_enabled = true
+ alarm_actions = [
+ "arn:aws:sns:ca-central-1:296255494825:alert-critical",
]
+ alarm_description = "Freeable memory of the RDS instance < 2G"
+ alarm_name = "low-db-memory-critical-instance-0"
+ arn = (known after apply)
+ comparison_operator = "LessThanThreshold"
+ dimensions = {
+ "DBInstanceIdentifier" = "notification-canada-ca-production-instance-0"
}
+ evaluate_low_sample_count_percentiles = (known after apply)
+ evaluation_periods = 1
+ id = (known after apply)
+ metric_name = "FreeableMemory"
+ namespace = "AWS/RDS"
+ period = 60
+ statistic = "Average"
+ tags_all = (known after apply)
+ threshold = 2147483648
+ treat_missing_data = "notBreaching"
}
# aws_cloudwatch_metric_alarm.low-db-memory-critical[1] will be created
+ resource "aws_cloudwatch_metric_alarm" "low-db-memory-critical" {
+ actions_enabled = true
+ alarm_actions = [
+ "arn:aws:sns:ca-central-1:296255494825:alert-critical",
]
+ alarm_description = "Freeable memory of the RDS instance < 2G"
+ alarm_name = "low-db-memory-critical-instance-1"
+ arn = (known after apply)
+ comparison_operator = "LessThanThreshold"
+ dimensions = {
+ "DBInstanceIdentifier" = "notification-canada-ca-production-instance-1"
}
+ evaluate_low_sample_count_percentiles = (known after apply)
+ evaluation_periods = 1
+ id = (known after apply)
+ metric_name = "FreeableMemory"
+ namespace = "AWS/RDS"
+ period = 60
+ statistic = "Average"
+ tags_all = (known after apply)
+ threshold = 2147483648
+ treat_missing_data = "notBreaching"
}
# aws_cloudwatch_metric_alarm.low-db-memory-critical[2] will be created
+ resource "aws_cloudwatch_metric_alarm" "low-db-memory-critical" {
+ actions_enabled = true
+ alarm_actions = [
+ "arn:aws:sns:ca-central-1:296255494825:alert-critical",
]
+ alarm_description = "Freeable memory of the RDS instance < 2G"
+ alarm_name = "low-db-memory-critical-instance-2"
+ arn = (known after apply)
+ comparison_operator = "LessThanThreshold"
+ dimensions = {
+ "DBInstanceIdentifier" = "notification-canada-ca-production-instance-2"
}
+ evaluate_low_sample_count_percentiles = (known after apply)
+ evaluation_periods = 1
+ id = (known after apply)
+ metric_name = "FreeableMemory"
+ namespace = "AWS/RDS"
+ period = 60
+ statistic = "Average"
+ tags_all = (known after apply)
+ threshold = 2147483648
+ treat_missing_data = "notBreaching"
}
# aws_cloudwatch_metric_alarm.low-db-memory-warning[0] will be created
+ resource "aws_cloudwatch_metric_alarm" "low-db-memory-warning" {
+ actions_enabled = true
+ alarm_actions = [
+ "arn:aws:sns:ca-central-1:296255494825:alert-warning",
]
+ alarm_description = "Freeable memory of the RDS instance < 4G"
+ alarm_name = "low-db-memory-warning-instance-0"
+ arn ... Show Conftest resultsWARN - plan.json - main - Missing Common Tags: ["aws_cloudwatch_log_group.logs_exports"]
WARN - plan.json - main - Missing Common Tags: ["aws_cloudwatch_metric_alarm.db-free-local-storage-critical[0]"]
WARN - plan.json - main - Missing Common Tags: ["aws_cloudwatch_metric_alarm.db-free-local-storage-critical[1]"]
WARN - plan.json - main - Missing Common Tags: ["aws_cloudwatch_metric_alarm.db-free-local-storage-critical[2]"]
WARN - plan.json - main - Missing Common Tags: ["aws_cloudwatch_metric_alarm.db-free-local-storage-warning[0]"]
WARN - plan.json - main - Missing Common Tags: ["aws_cloudwatch_metric_alarm.db-free-local-storage-warning[1]"]
WARN - plan.json - main - Missing Common Tags: ["aws_cloudwatch_metric_alarm.db-free-local-storage-warning[2]"]
WARN - plan.json - main - Missing Common Tags: ["aws_cloudwatch_metric_alarm.high-db-cpu-critical[0]"]
WARN - plan.json - main - Missing Common Tags: ["aws_cloudwatch_metric_alarm.high-db-cpu-critical[1]"]
WARN - plan.json - main - Missing Common Tags: ["aws_cloudwatch_metric_alarm.high-db-cpu-critical[2]"]
WARN - plan.json - main - Missing Common Tags: ["aws_cloudwatch_metric_alarm.high-db-cpu-warning[0]"]
WARN - plan.json - main - Missing Common Tags: ["aws_cloudwatch_metric_alarm.high-db-cpu-warning[1]"]
WARN - plan.json - main - Missing Common Tags: ["aws_cloudwatch_metric_alarm.high-db-cpu-warning[2]"]
WARN - plan.json - main - Missing Common Tags: ["aws_cloudwatch_metric_alarm.high-dbload-critical[0]"]
WARN - plan.json - main - Missing Common Tags: ["aws_cloudwatch_metric_alarm.high-dbload-critical[1]"]
WARN - plan.json - main - Missing Common Tags: ["aws_cloudwatch_metric_alarm.high-dbload-critical[2]"]
WARN - plan.json - main - Missing Common Tags: ["aws_cloudwatch_metric_alarm.high-dbload-warning[0]"]
WARN - plan.json - main - Missing Common Tags: ["aws_cloudwatch_metric_alarm.high-dbload-warning[1]"]
WARN - plan.json - main - Missing Common Tags: ["aws_cloudwatch_metric_alarm.high-dbload-warning[2]"]
WARN -... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Summary | Résumé
RDS instance alarms: DBLoad, CPU, Memory, and Local Storage (#1733)
Script to calculate bucket size (#1739)
Upgrade devcontainer to Python 3.12 and Debian 12.8
Submitted Python script to calculate s3 bucket size and github action
This will likely not work atm, work in progress.
Upgrading gh checkout action to latest.
Added poetry setup with dependencies
Updated action with OIDC and poetry setup
Updated dependencies
Git should ignore pycache folder
Added vscode dependendi plugin to manage dependencies versions
Added .env file support and improved script output
Aligned github action with poetry script definition
Updated script header and I need a [review]
Improved doc after ai review
Added explicit s3 bucket config as these are no secrets anyway
Added ItemCount CSV field in the documentation
Co-authored-by: Pat Heard [email protected]
Co-authored-by: Pat Heard [email protected]
Temporarily trigger the github action on PR sync
Fixed the env variable for teh AWS ACCOUNT ID.
Update calculate-s3-buckets-size.yml
Upgrade version of slack notification module (#1740)
#1715
dev and staing k8s update (#1744)
Co-authored-by: Pat Heard [email protected]
Co-authored-by: Mike Pond [email protected]