Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Services in region
- ## Activated services
- aws ssm get-parameters-by-path \
- --path /aws/service/global-infrastructure/regions/eu-west-1/services \
- --output json \
- --query Parameters[].Name
- ## Services actually used
- aws ce get-cost-and-usage \
- --time-period Start=2020-04-01,End=2020-04-28 \
- --granularity MONTHLY \
- --metrics "UsageQuantity" \
- --group-by Type=DIMENSION,Key=SERVICE Type=DIMENSION,Key=REGION \
- --output json \
- --query ResultsByTime[].Groups[].Keys[]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement