Is it possible to get an ec2 pricing programmatically

+1 vote
Apr 10, 2018 in Cloud Computing by hemant
• 5,790 points
1,976 views

1 answer to this question.

0 votes

Yes absolutely. You may get AWS pricing programmatically that is cost/hour of each instance type, cost per GB/month of storage on S3.

First you may use pricing API by AWS: There is now AWS pricing API: link

These are some of the JASON files that should do your job:

Note you need to strip the function calls off here.

 a short command to get current set or URLs from any AWS pricing page. Example based on EC2. Run it on Linux. 

curl http://aws.amazon.com/ec2/pricing/ 2>/dev/null | grep 'model:' | sed -e "s/.*'\(.*\)'.*/http:\\1/"
I hope this helps
answered Apr 10, 2018 by code_ninja
• 6,300 points

Related Questions In Cloud Computing

0 votes
3 answers

Is it possible to redirect a domain to Amazon EC2?

Create an Elastic IP on the AWS ...READ MORE

answered Nov 30, 2018 in Cloud Computing by Abhinav
2,554 views
+3 votes
3 answers

Is it possible to delete a API in AWS API Gateway?

Yes, it is possible to delete an ...READ MORE

answered Mar 27, 2018 in Cloud Computing by brat_1
• 7,200 points
4,768 views
0 votes
1 answer

Is it possible to use VPC to have access between two AWS Regions

Good question this. Currently this feature is ...READ MORE

answered Apr 18, 2018 in Cloud Computing by code_ninja
• 6,300 points
801 views
0 votes
1 answer

Does it make sense to have an Amazon Elastic Load Balancer with just one EC2 instance?

ELB automatically distributes incoming application traffic across ...READ MORE

answered Jul 12, 2018 in Cloud Computing by ArchanaNagur
• 2,360 points
1,112 views
0 votes
0 answers
0 votes
0 answers

Is it possible to display combo box without the dropdown?

Can someone explain if it's feasible to ...READ MORE

Nov 4 in Cloud Computing by Priyanka
• 4,080 points
26 views
+3 votes
3 answers

Is there a way to install apache drill on an EMR cluster on AWS that is already Running?

It looks to be trying to get ...READ MORE

answered Oct 11, 2018 in Cloud Computing by findingbugs
• 4,780 points
2,397 views
+2 votes
2 answers

Is there a way to get IAM Credentials from Cognito Username/Password from CLI?

Try doing it the other way round. ...READ MORE

answered Mar 27, 2018 in Cloud Computing by brat_1
• 7,200 points
1,276 views
+1 vote
3 answers

AWS EC2: Is it possible to edit httpd.conf file in

It would be prompting you a alert, ...READ MORE

answered Aug 17, 2018 in Cloud Computing by Priyaj
• 58,020 points
2,871 views
+3 votes
2 answers

Would it be possible to pause an ECS service instead of deleting it?

Yes, it is possible, by adjusting your ...READ MORE

answered Mar 27, 2018 in Cloud Computing by code_ninja
• 6,300 points
2,345 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP