Made a copy of the EC2 Default template, modified it and activated a few other services like ECS. See that the new EC2 template is being applied, but the probe is not collecting any of the ECS data that was activated in the modified template. Also, the aws Dashboards are no populating with CPU and Network data for EC2 instances even though all the metrics are turned on to collect the data.
Message seen in the aws.log when running the connection test are similar to the following:
EC2Discovery::EC2 DescribeInstance Caught Exception for Region: [ap-northeast-1]You are not authorized to perform this operation. (Service: AmazonEC2; ; Request ID: <request ID>)
Using AWS global user policies for user authentication in AWS.
Insufficient permissions defined in AWS for the user associated with the configured Access Key and Secret Access Key values
The aws probe through the 5.40 release uses AWS Identity and Access Management (IAM) authentication.