I'm using terraform to manage my infrastructure. I've added new cloudwatch alarms to triggers an ECS (fargate) autoscaling policy. Everything went okay, however, every time any of my cloudwatch alarms is triggered I get the following error in the log:
Failed to execute action arn:$policy_arn Received error: ""
I've checked the IAM policy and everything seems to be fine: I have multiple cloudwatch alarms, triggering the scale-up policy based on the following metrics:
- requests per target
- 5xx error count
- ECS service in the cluster CPU usage
Any idea of what this can be related to?