Initial blue-green cutover for rds aurora (#266)
This commit is contained in:
1 parent
1ce4979133
commit
97954e1551
16 files changed
+953
-379
No files matched your search
@@ -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 = []
|
||||
},
|
||||
|
||||
@@ -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}"
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
Reference in new issue
Block a user