Skip to content

Failed to get ECS Tasks: List Tasks failed: operation error ECS: ListTasks, https response error StatusCode: 403 - Consul 1.21.5 #23095

@BinitAmin

Description

@BinitAmin

Overview of the Issue

Hi Team,

I am getting Failed to get ECS Tasks: List Tasks failed: operation error ECS: ListTasks, https response error StatusCode: 403 after updating consul from 1.21.4 to 1.21.5 version

Note : we are running the Consul on AWS Fargate ECS cluster.

Full error

2025-12-04T10:52:49.442Z [ERROR] agent: Cannot discover address: cluster=LAN address="provider=aws region=Region_here tag_key=consul_id tag_value=tag_here service=ecs ecs_cluster=Cluster_name" error="discover-aws: Failed to get ECS Tasks: ListTasks failed: operation error ECS: ListTasks, https response error StatusCode: 403, RequestID: , deserialization failed, failed to decode response body, invalid character '<' looking for beginning of value" |   -- | --   |  

We already have the Listcluster, ListTask and describeTask action in our ECS task policy.

Is there anything changed in ecs:listTask command to get the task?

I have to update the version from 1.21.4 to any newer version as this is throwing so many go related vulnerabilities. I have tried 1.21.5 , 1.22.0 and 1.22.1 all three version and it is failing for all of them with same error.

Please provide any suggestion.

Reproduction Steps

Consul info for both Client and Server

Client info
Output from client 'consul info' command here
Client agent HCL config
Server info
Output from server 'consul info' command here
Server agent HCL config

Operating system and Environment details

Log Fragments

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions