1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
0
Your filter has two issues.
- The Key value
"USAGE_TYPE_GROUP
is missing a double-quote at the end. - Since you need to pass the filter as a single value as a JSON, you want to enclose the filter JSON within a single quotes ('').
The working command looks like the following:
aws ce get-usage-forecast --time-period Start=2022-10-22,End=2023-01-07 --granularity MONTHLY --metric USAGE_QUANTITY --filter '{"Dimensions": {"Key":"USAGE_TYPE_GROUP", "Values": ["EC2: ELB - Running Hours", "EC2: Running Hours", "RDS: Running Hours"]}}'
répondu il y a 2 ans
Contenus pertinents
- demandé il y a un an
- demandé il y a 8 mois
- demandé il y a un mois
- AWS OFFICIELA mis à jour il y a 2 ans
Thanks a lot for your help, that worked perfectly. I didn't know about enclosing the JSON within single quotes...