Initial blue-green cutover for rds aurora (#266)

This commit is contained in:
Robert Fairburn authored and GitHub committed 2026-07-23 10:23:52 -05:00
1 parent 1ce4979133
commit 97954e1551
16 files changed
+953 -379

No files matched your search

+3 -3
View File
@@ -19,8 +19,8 @@ locals {
iam_role_prefix = coalesce(var.iam_role_name_prefix, var.prefix)
landing_bucket_name = "${var.prefix}-alb-logs"
lambda_function_arns = var.enable_reencrypt_sweep ? [
"arn:${data.aws_partition.current.partition}:lambda:${data.aws_region.current.id}:${data.aws_caller_identity.current.account_id}:function:${var.prefix}-alb-log-reencrypt",
"arn:${data.aws_partition.current.partition}:lambda:${data.aws_region.current.id}:${data.aws_caller_identity.current.account_id}:function:${var.prefix}-alb-log-sweep",
"arn:${data.aws_partition.current.partition}:lambda:${data.aws_region.current.region}:${data.aws_caller_identity.current.account_id}:function:${var.prefix}-alb-log-reencrypt",
"arn:${data.aws_partition.current.partition}:lambda:${data.aws_region.current.region}:${data.aws_caller_identity.current.account_id}:function:${var.prefix}-alb-log-sweep",
] : []
kms_base_policy_statements = var.kms_base_policy != null ? var.kms_base_policy : [
@@ -78,7 +78,7 @@ locals {
resources = ["*"]
principals = {
type = "Service"
identifiers = ["logs.${data.aws_region.current.id}.amazonaws.com"]
identifiers = ["logs.${data.aws_region.current.region}.amazonaws.com"]
}
conditions = []
},
+2 -2
View File
@@ -64,7 +64,7 @@ locals {
effect = "Allow"
principals = {
type = "Service"
identifiers = ["logs.${data.aws_region.current.id}.amazonaws.com"]
identifiers = ["logs.${data.aws_region.current.region}.amazonaws.com"]
}
actions = [
"kms:Encrypt*",
@@ -93,7 +93,7 @@ locals {
test = "StringLike"
variable = "kms:EncryptionContext:aws:lambda:FunctionArn"
values = [
"arn:${data.aws_partition.current.partition}:lambda:${data.aws_region.current.id}:${data.aws_caller_identity.current.account_id}:function:${local.cron_monitoring_lambda_function_name}"
"arn:${data.aws_partition.current.partition}:lambda:${data.aws_region.current.region}:${data.aws_caller_identity.current.account_id}:function:${local.cron_monitoring_lambda_function_name}"
]
}
]