1 Risposta
- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
1
When you create a MonitorDimension of SERVICE, this is the "default" monitor that watches each service. You don't want to specify anything other than what is below.
Resources:
AnomalyServiceMonitor:
Type: 'AWS::CE::AnomalyMonitor'
Properties:
MonitorName: 'MonitorName'
MonitorType: 'DIMENSIONAL'
MonitorDimension: 'SERVICE'
In contrast, the other three types of monitors for Linked Accounts, Cost Categories, or Cost Allocation tags would be a CUSTOM type, not a DIMENSIONAL type. The MonitorDimension would not apply for these.
Resources:
CustomAnomalyMonitorWithLinkedAccount:
Type: 'AWS::CE::AnomalyMonitor'
Properties:
MonitorName: "MonitorName"
MonitorType: "CUSTOM"
MonitorSpecification: '
{
"Dimensions" : {
"Key" : "LINKED_ACCOUNT",
"Values" : [ "123456789012", "123456789013" ]
}
}'
These three require a MonitorSpecification to denote the tags, account numbers, Cost Categories, or whatever combination of dimensions you are trying to monitor. There are examples of each on the page you linked toward the bottom.
con risposta 2 anni fa
Contenuto pertinente
- AWS UFFICIALEAggiornata 2 anni fa
Thanks for the quick reply, setting just MonitorType: DIMENSIONAL and MonitorDimension: SERVICE worked.
But where in the documentation is the description what MonitorType: DIMENSIONAL means - how should I have known that was the right answer?