Pricing API requires credentials ?

0

I' creating a control panel for the cloud.

All examples online show something like this :

pricing_client = boto3.client('pricing', region_name='us-east-1')

But only by setting access key and secret key, it works

session = boto3.Session(
    aws_access_key_id='xxxxx',
    aws_secret_access_key='xxxxx',
    region_name='us-east-1'
)
pricing_client = session.client('pricing', region_name='us-east-1')
  1. Is the Pricing API accessible only via credentials?
  2. Will I get billed for the same or is this a free service? There will be 100 API calls per each of 100 users per day, so that would be 10,000 API queries per day.
  3. I am thinking of storing the result in redis so that only the first fetch of a particular combination would be via AWS API and subscequent queries via redis. Good / Bad idea ?
asked a year ago223 views
1 Answer
1

AWS offers two APIs that you can use to query prices:

  • With the AWS Price List Bulk API, you can query the prices of AWS services in bulk. The API returns either a JSON or a CSV file. The bulk API retains all historical versions of the price list.
  • With the AWS Price List Query API, you can query specific information about AWS services, products, and pricing using an AWS SDK or the AWS CLI. This API can retrieve information about certain products or prices, rather than retrieving prices in bulk. This allows you to get pricing information in environments that might not be able to process a bulk price list, such as in mobile or web browser-based applications. For example, you can use the query API to fetch pricing information for Amazon EC2 instances with 64 vCPUs, 256 GiB of memory, and pre-installed SQL Server Enterprise in the Asia Pacific (Mumbai) Region. The query API serves the current prices and doesn’t retain historical prices.

Reference : https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/price-changes.html

profile pictureAWS
EXPERT
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions