1 Respuesta
- Más nuevo
- Más votos
- Más comentarios
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.
respondido hace 2 años
Contenido relevante
- OFICIAL DE AWSActualizada hace 10 meses
- OFICIAL DE AWSActualizada hace un año
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?