0 votes
1 view
in AWS by (19.2k points)

Is there a way to get AWS pricing programmatically (cost per hour of each instance type, cost per GB/month of storage on S3, and etc)?

Also, are there cost monitoring tools? For example, is there a tool that can report your EC2 instance usage on an hourly basis (versus a monthly basis, which is what Amazon does)?

1 Answer

0 votes
by (44.6k points)

This is the new API for pricing provided by AWS. Check out the below link:

https://aws.amazon.com/blogs/aws/new-aws-price-list-api/

Also, you can try out this CLI command:

curl http://aws.amazon.com/<aws-service>/pricing/ 2>/dev/null | grep 'model:' | sed -e "s/.*'\(.*\)'.*/http:\\1/"


 

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...