Hey everyone, I’m new to terraform and am trying to create a Cloudwatch metric. I tested my pattern works in the AWS console when creating a metric filter that way, but when trying to copy paste this pattern into terraform I’m getting an error when at the = sign (request = "GET /transactions/*"
saying that a comma is expected.
Terraform version: Terraform v0.12.24
Error:
Error: Missing item separator
on cloudwatch.tf line 3, in resource "aws_cloudwatch_log_metric_filter" "get_transaction_429":
3: pattern = [ip, user, username, timestamp, request = "GET /transactions/*", status_code = 429, bytes]
Any assistance would be greatly appreciated