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 ?
질문됨 일 년 전229회 조회
1개 답변
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
전문가
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠