Are requests to AWS’ DescribeInstances endpoint free? - amazon-web-services

I'm working on a series of tutorials that rely on AWS EC2 instances. I'd like to give users a chance to play around with a limited AWS environment.
DescribeInstances is the only endpoint I need for that. However, I'd like to make sure that the possibility of someone spamming that endpoint with thousands/millions of requests won't incur thousand dollar charges on my account.
I tried asking someone at work about it, and they said they've never been charged for Describe requests. However, I'd like some more confirmation on that, which is why I'm asking this question.
NOTE: I've tried asking AWS support, but they are very slow to respond.

The Amazon EC2 pricing page has no mention of request-based charges. This differs from other services (for example, Amazon S3) that does specifically mention a request charge.
Therefore, it would seem that there is no per-request charge for Amazon EC2.

Related

How to cancel AWS instance and stop Amazon AWS from billing

I opened a so-called "free tier" account on AWS to learn about cloud services.
Now my credit card is charged every month and is costing me a lot of money.
I looked at the billing and I saw a Amazon RDS service in a Zone in USA.
I thought to delete the RDS instance but it was not possible even after trying several times and as hard as I could (All possible options and several times)
RDS instance could not be deleted by any means.
I thought to "stop" the instance at least it would cost less money. I saw the instance was stopped but for unclear reasons it started after 7 days again.
After a lot of frustration I decided to delete my AWS account in an attempt to stop the billing and prevent a bankruptcy. Amazon AWS still is billing the running the instance even after deleting my AWS account.
Now I cannot even login to AWS and cannot do anything.
I know I could block my credit card and get a new one, but I costs time and I would rather keep my existing credit card.
I want to open a lawsuit against AWS Amazon since it clearly violates European laws.
Please help me to answer the following questions
how can I stop this billing and prevent Amazon AWS to charge my credit card?
Where Do I get contact with AWS support, for this level I only find community help but no direct contact with AWS Support.
Where can I find information about precedent cases to prepare a lawsuit?
Many thanks for your help, this is very important since it has a big financial impact for me.
It is very easy to contact AWS support. There is a direct link in the navbar at the top right. AWS is actually pretty helpful when it comes to new users being accidentally overcharged. They will simply cancel your charges if you raised a ticket on time. https://console.aws.amazon.com/support/home?#/
What did you do to delete your account? I doubt your root account is deleted. Try logging in with root credentials (email and password) then raise a support ticket.
I can't give you legal advise but do you really intend to sue a company who you did not contact even though their support links are on every page of the their product?
The AWS Free Tier provides a billing discount for certain AWS services. It is not a 'Free Account'.
You could contact AWS Customer Service (which is different to AWS Customer Support). They handle all billing-related queries.
Go to https://aws.amazon.com/contact-us/ and select Billing or Account support.
If you are unable to signing, go to: https://support.aws.amazon.com/#/contacts/aws-account-support/

AWS: Will my account get unexpected charges?

My AWS Free Tier is about to expire tomorrow, however I do not longer have active services within my account. I do not plan on using AWS anymore after my Tier expires, but since I do not trust Amazon from charging my credit card, how can I completely make sure I will not? As I said, I don't have active services. Althought I could just completely delete my account, I may use it in the future, who knows.
Check AWS Cost Explorer.
From what you're showing, you will not get charged (Security Groups are free). However, take into account that EC2 is just one service of many, and each region has its own set of resources. Cost Explorer may help you identify these. Good luck!

What happens if a botnet uses http requests to drain my Amazon AWS server?

Im going to launch an app and Im worried if my competitors would just kill me by draining my Amazon AWS resources by using a botnet to send gibberish http requests to my Amazon AWS Account. I only got a few thousand dollars and I can not afford to be slaughtered like that.
In what other ways my competitors or haters could drain my server resources to drain my bank balance and how to prevent it?
please help. Im in very stressful situation where I cant get any answer for this question. Any suggestion is welcome.
Thanks.
As pointed by #morras, AWS Shield + WAF is good combination to protect your resources from spam requests. Since you have not given your architecture about what aws services you are actually using, I am trying to answer based on general term.
In AWS Shield there are two types
Standard - Automated mitigation techniques are built-into AWS Shield Standard, giving you protection against common, most frequently occurring infrastructure attacks. If you have technical expertise to create rules based on your request, you can go with this.
Advanced - AWS WAF comes free with this, and you will have 24x7 access to the AWS DDoS Response Team (DRT), support experts who apply manual mitigations for more complex and sophisticated DDoS attacks, directly create or update AWS WAF rules, and can recommend improvements to your AWS architectures.It also includes some cost protection against Amazon EC2, Elastic Load Balancing, Amazon CloudFront, and Amazon Route 53 usage spikes that could result from scaling during a DDoS attack
Please take a look at design resilient architecture in aws to mitigate DDOS.
update: If the AWS Shield Advanced team determines that the incident is a valid DDoS attack and that the underlying services scaled to absorb the attack, AWS provides account credit for charges incurred due to the attack. For example, if your legitimate CloudFront data transfer usage during the attack period was 20 GB, but due to the attack you incurred charges for 200 GB of incremental data transfer, AWS provides credit to offset the incremental data transfer charges. AWS automatically applies all credits toward your future monthly bills. Credits are applied towards AWS Shield and cannot be used for payment for other AWS services. Credits are valid for 12 months.
The services covered as per doc are Amazon CloudFront, Elastic Load Balancing, Route 53 or Amazon EC2 . Please check with AWS support, whether your services are covered or not.
There are a couple of options available. First of AWS provides AWS Shield which is a DDoS protection service. The standard subscription is free and covers most frequently occurring network and transport layer DDoS attacks.
On top of that you can consider using AWS WAF - Web Application Firewall which allows you to setup rules for what traffic to allow to your servers.
You can also use API gateway in front of your service and set throttling limits on how much traffic to allow through.
However I would question if you really need this? It sounds like you are worried that you would run up a huge AWS bill if competitors start sending you millions of requests. You can setup billing alerts so when your forecasted bill exceeds a specific threshold you are warned and you can either manually shut down the services that are being bombarded and figure out what the attacks look like, or you can have an automatic response via CloudWatch. I believe that you will find that you will not be under attack and that you should not worry too much on this attack vector at this time.

How to ensure AWS Elastic Beanstalk is free

I am wanting to deploy a Django webapp with a PostgreSQL database to AWS Elastic Beanstalk using this tutorial, but I am so confused about pricing. It says it uses services in the AWS Free Tier, but those seem to be limited to a certain number of hours a month, so how do I make sure I don't go above that threshold? And how do I make sure I'm only using free services? They even require a card on file, so it seems really hard to make sure I don't get charged.
You can do the following configuration to make sure you use AWS Elastic Beankstalk for one year free.
Use only Micro instances for the WebServer and RDS instance.
Limit the scaling of the WebServer maximum to 1 or use Standalone deployment without autoscaling.
When selecting storage, use less than 30GB for EBS and don't enable Provision Throughput.
Apart from these, there are usage base costs for Network, EBS IOPS & etc which includes a free quota and the cost is not considerable when it comes to light use cases.
The AWS Free Tier allows AWS accounts to use a certain amount of services for no charge. Any usage beyond the free tier limits will result in a charge on your credit card.
The Free Tier is intended to provide a trial of AWS services. It is not intended for production use, nor is there any guaranteed way to stay within the free limits. It is up to you to monitor your usage.
There is no such thing as a totally free AWS account.
I have found "Cost Management Preferences" -> "Receive Free Tier Usage Alerts" setting in Billing preferences menu. Hopefully this will be enough for a small personal projects with low usage. I would guess it is not enough for large projects since this is only a notification.
In short, you can absolutely make sure that your app stays free, just not from within the AWS interface. You'll have to use your own usage monitoring to ensure you stay within the free limits as others state.
As Ashan said, this is a pretty silly approach since fees are nominal and the alternative is a loss of service, however, AWS does offer APIs to help you do this through CloudWatch.
CloudWatch exposes pretty much all of the billable metrics on a service-by-service basis, for example here are the metrics for EC2, and here are the metrics for S3. After starting your services through beanstalk, just look up all the services you're using via the billing page of the AWS console, look up the CloudWatch APIs for each, then check them.
At least for EC2, there are even customizable alarms and actions, including shutting down the instance. See the Monitoring tab at the bottom of the EC2 console. Not sure, but you might have to manually throw status updates to their status system for some of the other metrics. If so, it's not that difficult. You'd set up an access key for some IAM identity so you can check CloudWatch stuff from command line. Then, you'd write a watchdog script to run on that instance using AWSCLI to regularly ping CloudWatch and call your shutdown code or modify your status if you're over some percentage of your quota.

amazon aws billing clients per usage

suppose you have an app on aws and you want to charge for storage to clients for each gb they use. is there a way to get this info from amazon or collect it yourself if you are using your own aws account for this (clients have no amazon aws accounts).
for example: 10gb spent at the end of the month. have to charge it. how to figure out what to bill each of the 5 clients?
can amazon give this info? if amazon can't provide this, how to do it?
same question for storage / bandwidth and processing time.
basically do what amazon does :P
even if that is hard, how to ensure if you sell a package of 1gb / month (storage example) that the customer doesn't go over. any patterns for handling this (as in code patterns i can use)?
Amazon provides a service that I think does exactly what you want called "DevPay" that has the ability to track and charge users S3 usage.
http://aws.amazon.com/devpay/
From the DevPay documentation:
"Amazon DevPay is a simple-to-use online billing and account management service that makes it easy for businesses to sell applications that are built in, or run on top of, Amazon Web Services. It is designed to make running applications in the cloud and on demand easier for developers."
If you can't use this for some reason then it's up to you track users usage within your application...