Surely everyone has heard about Amazon Web Services (AWS). And some even looked at the Pricing page. And they noticed that prices there are noticeably higher than on DigitalOcean, Linode, Hetzner Cloud, etc. Here is a table for comparing prices:
Type of | Ram | CPUs | Disk | Traffic | Price | |
---|---|---|---|---|---|---|
Digitalocean | - | 4 GB | 2 vCPUs | 80 GB | 4 TB | $ 20 |
Linode | Linode 4GB | 4 GB | 2 vCPUs | 80 GB | 4 TB | $ 20 |
AWS | t2.medium | 4 GB | 2 vCPUs | - | - | $ 40 |
Amazon takes money for traffic, and the prices are also not low:
So why choose Amazon? Here are the reasons I see:
On the second and will be discussed in this article.
On the pricing page there is a link to a page with a free use level , which states that many services can be used free of charge for 1 year.
This is quite enough for a whole year to keep free a full-fledged website or backend of a mobile application / game or something else. Besides:
AWS pricing is very insidious, so I advise you to bind a virtual card to your account. Even at the level of free use, you can fly into significant amounts. Below I will share my experience.
Pay-as-you-go pricing is scary because you can’t accurately predict end-month spending. Frankly, I would not use it if it were not for the experience gained at work, where for other people's money is not terrible.
When working with AWS, you need to be careful from the time of registration. From personal experience: when I registered for the first time, I chose the Developer tariff (well, I’m a developer, it means to me) and did not notice that this tariff has a subscription fee of $ 20 per month.
So, what we have for free during the year after registration:
Always free:
Not applicable to Free Tier, but also free:
After you have created the necessary instances, uploaded data, set up CloudFront, it’s helpful to set up CloudWatch and budget. Without this, you can get an unexpected score at the end.
month for traffic.
CloudWatch is a service for monitoring various metrics of your servers and utilized services: CPU utilization, number of I / O operations and, most importantly, traffic.
Using it, you can set up sending an alert by mail or call a webhook (for example, to send a message to Telegram) if the traffic has exceeded a specified value for a specified period of time. For example, send a message to Telegram if CloudFront traffic exceeds 1 GB in 5 minutes. The minimum available time interval is 1 minute.
Screenshot of the CloudWatch page with customized alerts:
The budget allows you to set a monthly cost limit, above which a warning will be sent, similar to CloudWatch. You can create up to 3 budgets for free.
From personal experience: once I picked up a CORS-proxy crossorigin.me on my server and one comrade (I won’t say how he found out about the existence of a proxy) started downloading YouTube through it. I discovered this when he managed to pump up $ 17, after which I stopped the proxy.
Invoice screenshot for August:
Total. AWS, with due care and attention, can significantly save on the initial stage of project development.
Source: https://habr.com/ru/post/421991/
All Articles