Are EC2 Windows instances charged per hour or per second? - amazon-web-services

I am appearing for AWS CCP tomorrow , I thought Windows EC2 instances are billed per hour but this confused me. Can anyone help me understand the difference between Windows Ec2 instance and Windows based Ec2 instance is the question wrong

Amazon EC2 instances running Windows were historically charged per hour.
However, they are now charged per-second.
As written in your screenshot: "Windows based EC2 instances used to follow pay-per-hour pricing earlier."
See: Understand Amazon EC2 instance-hours billing

Another link would be the official documentation for the on-demand EC2 pricing stating:
Pricing is per instance-hour consumed for each instance, from the
time an instance is launched until it is terminated or stopped. Each
partial instance-hour consumed will be billed per-second for Linux,
Windows, Windows with SQL Enterprise, Windows with SQL Standard, and
Windows with SQL Web Instances, and as a full hour for all other
instance types.

Related

AWS RedHat Enterprise EC2 Billing Confusion

Does AWS RHEL EC2 billis per second or per hour?
So If I run an ec2 for 30min, will it be billed for just 30 min? or an hour?
I've seen that aws supports per-second billing for linux, is it applicable for RHEL too? As it has seperate cost assositat with it.
Also using Spot Instances.
So in summery will I be billed by hour or by seconds?
According to faq
https://aws.amazon.com/partners/redhat/faqs/
Whether it is on demand of spot instances
Red Hat Enterprise Linux on Amazon EC2 is offered at either a flat, hourly rate with no commitment (On-Demand or Spot Instances) or through a one-time, upfront payment (Reserved Instances). Both purchase options include Amazon EC2 compute charges and Red

AWS Free Tier Limitations for EC2

I am new to AWS so please bear with me as my question might not make sense. BUT I had one ec2 instance running a single flask web application for about 3 months and my bills were in the $0-$0.50 range. However, I started to experiment with docker images, and such, I had these docker images running in their own containers on a separate ec2 instance. So for the month of April, I got charged $35 instead of the usual $0.50, so after a call with AWS they said my ec2 instances went over the limit of 750 hrs of time. So my thought process is I have only one ec2 instance running which in turn has multiple docker containers running serving different applications, could this help keep my costs from ballooning? Or would each docker container count towards the 750 hrs of montly time?
If my question did not make sense, please ask questions to my question :P
Hello Abhishek Hotti,
I can understand your frustation, I came on AWS while ago by experimenting like you and I can tell you I was billed my first month with more than 300€ due my "missunderstanding" of the AWS services and the Freetier layer.
I can tell you now, that Amazon ECS uses mainly two different approaches to launch containers:
EC2 Launch Type: which lets you choose your EC2 instances as the computational node.
Fargate Launch Type: which is fully managed by AWS. Your containers run without you managing and configuring individual Amazon EC2 instances. That means that despite you doesn't see the EC2 instances they are in the background and you are billed for that.
AWS Source documentation
The issue here seems to be that you are using two EC2 instances.
According to the free tier layer in AWS:
750 hours per month of Linux, RHEL, or SLES t2.micro or t3.micro
instance dependent on region
Making a fast calculation: each month are 24h * 30 days = 720h. Gf you are using two instances that will be = 1440 hours. That is above of the free tier layer and you are billed in consequence.
If you will be using the Fargate launch type option your bills will contain the use of the Fargate infrastructure that will be located in the background.
I hope this helps

AWS Lightsail MySql Database

I have taken a AWS Lightsail Unix Instance for one of my pilot project, I wanted to explore AWS ecosystem and thought this would be a easy playground to start with. The plan I opted was a USD 5 per month, which gives 1 GB Memory, 1 Core Processor, 40 GB SSD Disk and 2 TB Transfer.
After subscribing I created a LAMP instance and a Plesk Instance, assigned static IPs to both instances and setup connections from my PC to transfer files using PuTTY; also setup access to Plesk and phpMyAdmin to start work.
In the first month itself, I am seeing a huge bill of USD 985 for using AWS RDS, details in bill are as below:
Amazon Relational Database Service for MySQL Community Edition
$1.080 per RDS db.r4.xlarge Multi-AZ instance hour (or partial hour) running MySQL
My question is - When I created LAMP, does it create a AWS RDB service automatically, I have hardly used MySql for anything. It seems AWS Lightsail is throwing hidden charges without notifying customers about actuals.
No, creating a LAMP stack on Lightsail does not create an RDS instance on your behalf. With the LAMP stack on Lightsail, the MySQL database is installed on that instance alongside PHP and Apache - there is no charge beyond the $5.00 / month (in your case) as long as you don't go over the data transfer limit.
I can't say why you're getting charged for RDS, but it's not because you fired up Lightsail instances.
Thank you folks!
I tried to go through several docs AWS provides on pricing. There is no indication that AWS RDB services automatically starts on LAMP installation. I wanted to take second opinion before raising a complaint with them. I have opened a case, and they have confirmed to revert the charges, however there is no clarity how AWS RDS service has started. At present I have removed all DB snapshots and backups.

Can multiple AWS Data Pipelines share an EC2 resource?

I have 10 pipelines that run at least twice per hour each and use an EC2 resource to copy data from an external MySQL server to S3.
My preference is to let the pipelines launch their own resources (as opposed to use a long-running instance launched manually), but I don't want 10 EC2 instances running continuously (EC2 instances are billed per hour) just to perform a 1-minute job twice an hour. Is there a way to have the pipelines share a launched instance?
You could have a long running EC2 instance combined with Task runner.
[...] In this pattern, you assume almost complete control over which
resources are used and how they are managed [...].
Also, EC2 instances are not billed per hour: https://aws.amazon.com/blogs/aws/new-per-second-billing-for-ec2-instances-and-ebs-volumes/
Not to be that guy lol but Google offers per minute charges (actually first 10 minutes are billed, then per minute)

Charges for "traffic" in EC2 instance?

Is there any changes for "traffic" when using basic version of EC2 instance, by basic I mean:
750 hours per month of Linux, RHEL, or SLES t2.micro instance usage
Traffic: If we setup a server and there are some hits on my server then is there any charge for this setup. I am not using ELB, just EC2 instance with a server on it.
The full pricing for On-Demand Amazon EC2 instances can be found at: https://aws.amazon.com/ec2/pricing/on-demand/
The AWS Free Usage Tier gives 750 hours per month of a t2.micro instance. This means you could run one instance for a full month, or two instances for half a month. Simply stop the instance(s) to stop the charges.
You can have this free usage tier for a Linux AND a Windows instance.
However, please note that there are additional charges that also apply:
Data Transfer: This is charged for data leaving the AWS Region going to the Internet. The free usage tier includes "15 GB of bandwidth out aggregated across all AWS services" in the first 12 months. The EC2 pricing page also says that the first 1 GB/month is free, but I'm not sure if they overlap.
EBS Volume storage: Elastic Block Store (EBS) runs the disks attached to your instance. The free usage tier includes "30 GB of Amazon Elastic Block Storage in any combination of General Purpose (SSD) or Magnetic, plus 2 million I/Os (with EBS Magnetic) and 1 GB of snapshot storage", so you will be charged if your disk storage exceeds this (which is likely if you run both a Windows and a Linux instance). This storage charge continues to apply when an instance is Stopped, but not when an instance is Terminated.
Bottom line: Stop or turn off things when you don't need them. You can also activate a billing alert to warn you when you have been charged some actual money.
Yes, there are varying charges for traffic into and out of your EC2 instance.
in very rough numbers, if you budgeted $0.01 per GB of traffic, you would come in under that, but the complete breakdown is here:
https://aws.amazon.com/ec2/pricing/on-demand/