The first deployment of the shared component in a newly created AWS account fails like this:
│ Error: putting CloudWatch Logs Metric Filter (): ResourceNotFoundException: The specified log group does not exist.
│
│ with aws_cloudwatch_log_metric_filter.clamscan,
│ on shared.tf.json line 511, in resource[12].aws_cloudwatch_log_metric_filter[11].clamscan:
│ 511: }
│
╵
╷
│ Error: putting CloudWatch Logs Metric Filter (): ResourceNotFoundException: The specified log group does not exist.
│
│ with aws_cloudwatch_log_metric_filter.freshclam,
│ on shared.tf.json line 524, in resource[12].aws_cloudwatch_log_metric_filter[12].freshclam:
│ 524: }
│
╵
╷
│ Error: putting CloudWatch Logs Metric Filter (): ResourceNotFoundException: The specified log group does not exist.
│
│ with aws_cloudwatch_log_metric_filter.clam_fail,
│ on shared.tf.json line 537, in resource[12].aws_cloudwatch_log_metric_filter[13].clam_fail:
│ 537: }
│
The first deployment of the
shared
component in a newly created AWS account fails like this:A retry results in the same error.