Hi,
I’m trying to configure CloudWatch metrics streams using Terraform in my monitoring aws account.
But I can’t enable (by Terraform) the option “Include source account metrics”
is there a way to enable it by my script?
This is my code:
resource "aws_cloudwatch_metric_stream" "main" {
name = "MetricStreams"
role_arn = aws_iam_role.metric_stream_to_firehose.arn
firehose_arn = aws_kinesis_firehose_delivery_stream.s3_stream.arn
output_format = "json"
include_filter {
namespace = "AWS/EC2"
}
include_filter {
namespace = "AWS/EBS"
}
}