I already succeed enabling cloud debug for an ECS Fargate task in IntelliJ via following doc.
Also I configured a debug configuration for the cloud debug enabled task via doc, then I ran the debugging configuration, got below error,
Retrieve execution role finished exceptionally: java.lang.RuntimeException: Failed to retrieve execution role from the service: is it set up for debugging?
Any hint to resolve it. I did not find any doc mentioned execution role requirements.