|
@@ -15,7 +15,7 @@ data "aws_iam_policy_document" "awsconfig" {
|
|
|
effect = "Allow"
|
|
|
actions = ["s3:PutObject"]
|
|
|
resources = [
|
|
|
- "arn:${var.aws_partition}:s3:::xdr-config-${var.environment}/*",
|
|
|
+ "arn:${var.aws_partition}:s3:::xdr-config-${local.logging_environment}/*",
|
|
|
]
|
|
|
condition {
|
|
|
test = "StringEquals"
|
|
@@ -27,7 +27,7 @@ data "aws_iam_policy_document" "awsconfig" {
|
|
|
effect = "Allow"
|
|
|
actions = ["s3:GetBucketAcl"]
|
|
|
resources = [
|
|
|
- "arn:${var.aws_partition}:s3:::xdr-config-${var.environment}/*",
|
|
|
+ "arn:${var.aws_partition}:s3:::xdr-config-${local.logging_environment}/*",
|
|
|
]
|
|
|
}
|
|
|
|
|
@@ -84,7 +84,7 @@ resource "aws_config_configuration_recorder" "awsconfig_recorder" {
|
|
|
|
|
|
resource "aws_config_delivery_channel" "awsconfig_delivery_channel" {
|
|
|
name = "xdr-config-delivery-channel"
|
|
|
- s3_bucket_name = "xdr-config-${var.environment}"
|
|
|
+ s3_bucket_name = "xdr-config-${local.logging_environment}"
|
|
|
sns_topic_arn = "arn:${var.aws_partition}:sns:${var.aws_region}:${local.c2_account}:account-alerts"
|
|
|
|
|
|
snapshot_delivery_properties {
|