Is it possible to get an ec2 pricing programmatically?

+1 vote
Apr 10, 2018 in Cloud Computing by hemant
• 5,750 points
208 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,220 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
32 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,080 points
625 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,220 points
33 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,270 points
80 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,750 points
291 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,080 points
53 views
0 votes
1 answer

Is there a way to find out the number of objects stored in an S3 bucket?

Frankly, that is not possible. This is ...READ MORE

answered Apr 17, 2018 in Cloud Computing by code_ninja
• 6,220 points
34 views
0 votes
1 answer

Is there a way to transfer files between AWS s3 and ec2

The answer is a definite yes yes. ...READ MORE

answered Apr 17, 2018 in Cloud Computing by brat_1
• 7,080 points
49 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
• 56,520 points
633 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,220 points
55 views