Path: blob/master/AWS/AWS_Get_cost_forecast.ipynb
2973 views
AWS - Get cost forecast
Tags: #aws #cloud #ce #operations #snippet
Author: Florent Ravenel
Last update: 2023-11-20 (Created: 2021-09-14)
Description: This notebook utilizes the AWS Cost Explorer to retrieve accurate cost forecasts from an AWS account. By leveraging the Cost Explorer's forecasting capabilities, users can proactively plan and estimate their future AWS costs. Stay ahead of your budget with this notebook's integration of the AWS Cost Explorer, enabling you to make informed decisions and optimize your AWS spending.
References:
Input
Import libraries
Setup variables
Mandatory
aws_access_key_id
: This variable is used to store the AWS access key ID.aws_secret_access_key
: This variable is used to store the AWS secret access key.start_date
: This variable is used to store the first date to get the data from.end_date
: This variable is used to store the last date to get the data from. It must be the first of a month.
Optional
granularity
: This variable is used to define cost granularity by date. Granularity can only be MONTHLY, DAILY or HOURLY.file_path
: This variable is used to define csv file path to be stored in local with billing details.