Skip to content

Instantly share code, notes, and snippets.

@josefmonje
Created April 16, 2023 06:16
Show Gist options
  • Save josefmonje/c60da7da892054d7e7b4a011d5a01da1 to your computer and use it in GitHub Desktop.
Save josefmonje/c60da7da892054d7e7b4a011d5a01da1 to your computer and use it in GitHub Desktop.
aws ce get-cost-and-usage --time-period Start=$(date -v-1m -v1d -u +%Y-%m-%d),End=$(date -v1d -u +%Y-%m-%d) --granularity MONTHLY --metrics "BlendedCost" --output text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment