How can I query cloudwatch to show only the linked accounts? I want to display linked accounts as a variable but I'm not sure how to query and list the linked accounts.
Here is how a query for the graph looks like with linked accounts and currency set.
CodePudding user response:
dimension_values(us-east-1, AWS/Billing, EstimatedCharges, LinkedAccount, {"Currency": "USD"})
See doc: https://docs.aws.amazon.com/grafana/latest/userguide/cloudwatch-templated-queries.html