Missing `trustedadvisor` in Datadog integration role
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 88/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- aws, yaml
- Domain
- cloud
Research direction
Open aws/datadog_integration_role.yaml and inspect the inline DatadogAWSIntegrationPolicy around the existing Trusted Advisor permissions. Compare the policy with the AWS Trusted Advisor integration documentation and update the actions as appropriate. Done means the template grants the required trustedadvisor permissions and handles the legacy support actions consistently with the documented transition.
Written by the indexing model from the issue text.
Description
Summary
The AWS Trusted Advisor integration docs state that as of 1 June 2026, Datadog collects Trusted Advisor data via the newer Trusted Advisor API and requires:
trustedadvisor:ListRecommendationstrustedadvisor:ListRecommendationResources
and that support:describe* / support:refresh* are no longer required after that date.
aws/datadog_integration_role.yaml still grants only the legacy Support API actions and has never been updated to include the trustedadvisor: ones. Anyone who provisioned the integration role from the published CloudFormation template therefore has a role that cannot make the calls Datadog now needs.
Expected
The integration role template grants the permissions the documentation says the integration requires.
Actual
The only Trusted Advisor grants in the template are the legacy Support API ones, in the inline DatadogAWSIntegrationPolicy:
There are no trustedadvisor: permissions anywhere in the file.
Fix
The solution is trivial:
- Remove the old
support:*permissions (if truely unused) - Add the two new required
trustuedadvisor:permissions
- 'states:DescribeStateMachine'
- 'states:ListStateMachines'
- - 'support:DescribeTrustedAdvisor*'
- - 'support:RefreshTrustedAdvisorCheck'
- 'tag:GetResources'
- 'tag:GetTagKeys'
- 'tag:GetTagValues'
+ - 'trustedadvisor:ListRecommendations'
+ - 'trustedadvisor:ListRecommendationResources'
- 'timestream:DescribeEndpoints'
- 'wafv2:ListLoggingConfigurations'
- 'xray:BatchGetTraces'
- 'xray:GetTraceSummaries'
Retaining the support:* actions alongside them would keep the change backwards-compatible for accounts that have not yet cut over, but it is unclear under what circumstance that is necessary.
- Dominant language
- Python
- Stars
- 47
- Forks
- 58
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 8
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from DataDog/cloudformation-template
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 52/100
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
DataDog/cloudformation-template#174 · 1 comment ·
-
When will the templates in aws quickstart be updated to use the latest version of python (3.13) Open
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
All issues in DataDog/cloudformation-template
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100