Do you get charged for a security group in AWS EC2? - amazon-ec2

I recently had an EC2 instance that I terminated, I've deleted everything except for the Default Security Group which I am not allowed to delete. Note: I've deleted all the Inbound Rules and Outbound Rules. My bill still reflects EC2 charges which are by the hour. Do I need to worry about deleting this security group?

There is no charge applicable to Security Groups in Amazon EC2 / Amazon VPC.
You can drill-down into your billing charges via the Billing Dashboard. Just click Bill Details, expand the Elastic Compute Cloud section and a breakdown of charges will be displayed:
You should then be able to see the origin of your charges.

The AWS documentation says "f you terminate an underlying Amazon EC2 instance, the service that started it might interpret the termination as a failure and restart the instance."
So you could check on this,also check if you are using any services ,cost will be incurred if anything is launched using the services.
Are you using a free tier account?
The cost incurred is different if your free tier period is completed just a heads up.

Related

AutoScaling EC2 Instances

Im hoping to move an application to AWS.
I would like to use the AutoScaling so not all my EC2 instances are in use when the application use is quiet.
My problem is.....
I have one service account used for all communication between the various components of the application and the servers in that environment
We have a security exception with my company which allows us to use the service account to perform its actions on each individual server.
Every time we introduce a new server to the environment, we have to request that the security team update our exception list to allow the new server in as well.
There is no automatic method for doing this. We have to submit a request to the security team asking for the new server to be added to the exception.
So while AutoScaling would be prefect how can it work in this case if each time a server is added the security team needs to be notified so they can add the new server to the exception list?
Thanks
You can get notifications when your autoscale group scales either up or down. SNS can send a variety of things, including SMS (text) messages to a cell phone.
While this would work, it is incredibly manual. The goal of an autoscale group is to let the environment expand and contract without human intervention. I personally would not implement this as, depending on the availability of your security team they may be a bottle neck to scaling up. If for some reason they miss the scale up event that signals them to do something then you've got orphan machines that you're paying for that are doing nothing.
Additionally, there are also ways to script the provisioning of a new machine. Perhaps there is a way to add what you want automatically. AWS calls this userdata - you can learn a bit more about it from the AWS EC2 docs.
But ultimately I'd really take a step back and look at your architecture. If you can't script the machine provisioning then autoscaling is not very worthwhile - it's just plain "have devops add another machine if needed and hope they remember to take it down when it's not needed".

Heroku instances in an Amazon VPC - Possible?

My company uses AWS heavily and has several Amazon Direct Connect network links from our points of presence into Amazon. These reduce our latency and costs.
http://aws.amazon.com/directconnect/
We would like to be able to use Heroku more extensively with our internal applications, but the dynos would need to exist inside our Amazon VPCs in order for us to get the latency and cost benefits. I can't see a way to do this.
Is there any way for Heroku customers to run their dynos inside specific Amazon VPCs?

How to disable Amazon EC2 charging?

I currently try to implement amazon ec2 and I read that after one year they charge you. I used google app engine before(using java) and there is the feature that you can enable/disable charging. I just want to try the free ec2 instance, so here are my questions:
Does Amazon EC2 AUTOMATICALLY charge you after one year?
How to disable the automatically charging function?
I ended up closing my account by visiting the account page
At the bottom of the page you will find "close account"
It is currently not possible to disable charging. You might need to go over the free tier (for example if you setup a production environment, you might not want it to be killed automatically by amazon). Google App engine is a bit different because it is free if you have zero http requests, so it will just stop serving your app.
If you delete your credit card on your account, amazon will still charge it if there is an unpaid balance.
Amazon will not remind you that you will go over your free tier, so I would recommend to put a little reminder in one year on your calendar in one year to not forget to shutdown your server.
There is no way to control how much you will have to pay on AWS, that's why I wouldn't use it.
Amazon is really vague on the free tier (for instance it's not very clear whether the storage volume comes with the instance is counted against free EB2 storage quota). There are so many ways you can get a bill for using the free tier.
Yes you will be billed after 12 months, if you don't terminate all the instances and detach all storage volumes.
So many people have complained about Amazon's billing practice. Amazon has never changed. I guess this is the way Amazon decided to make $. Let you in for "free" but you will most likely accidentally spend some money. If you decide to use it, you won't know how much you will have to pay. If you have the capability to use colo/dedicated server, you might find out it's actually so much cheaper to go with a fixed monthly payment instead of billing based on usage.
With Amazon EC2, you are billed per hour of usage. If you are a new user, your account is credited with something like 8,760 free hours (24*365) which expire after 1 year. (I'm working from fuzzy memory here, so double-check the official terms instead of taking my word for it.)
After your free hours expire or are otherwise used up, Amazon EC2 will begin billing for normal hours (which can be as cheap as 2 cents per hour -- http://ec2instances.info). There is no such thing as a "free" EC2 instance.
So, to answer your questions:
Does Amazon EC2 AUTOMATICALLY charge you after one year?
Once your free hours are used up or expire, then you are automatically billed for normal hourly usage.
How to disable the automatically charging function?
You can't. All EC2 instances cost money. You are responsible for keeping an eye on your account and ensuring that you don't go over your free hours if you don't want to pay anything.
I was charged for a service that practically i never used.
a) Its true that Amazon never told you that the free tier is done. However, Amazon is prompty to charges you. Its my mistake but i admit that a little advice doesn't hurt, specially since practicaly everybody do that.
b) Even for a free tier, i wasn't impressed with the performance. I am owned a shared-hosting that are more powerful.
c) As some comments said, you can't delete your credit card, neither you can cancels the service. Its really low.
d) Finally,as some comment said, i closed my account. As far i can remember, its not tied with your Amazon (not cloud) account.
The service its so convoluted and overly complex, its filled with paid-traps and i am not impressed at all. Thanks Amazon but not thanks, i will stick with VPS/Dedicated.
You get 1 year of free usage http://aws.amazon.com/free/ .
Try reading AWS Free Usage Tier: http://www.amazon.com/Getting-Started-Guide-Usage-ebook/dp/B007Q4JESC/ref=sr_1_1?ie=UTF8&qid=1343213452&sr=8-1&keywords=aws+free+tier .

How many EC2 instances can be used within Amazon VPC?

Amazon's Virtual Private Cloud (Amazon VPC) allows me to open a VPN connection to the EC2 cluster.
It looks like the number of EC2 instances you can run within a virtual private cloud is 24 hosts - is that correct?
Update
The beta limitations mentioned in the initial answer have meanwhile been lifted, the new ones (which can be raised as outlined) are addressed by the respective FAQ How many Amazon EC2 instances can I use within a VPC?:
You can run any number of Amazon EC2 instances within a VPC, so long
as your VPC is appropriately sized to have an IP address assigned to
each instance. You are initially limited to launching 20 Amazon EC2
instances per VPC at any one time and a maximum VPC size of /16
(65,536 IPs). If you would like to exceed these limits, please
complete the following form.
Furthermore, the initial Number of VPCs per region is 5 and the initial Number of subnets per VPC is 20, see Appendix B: Limits for details regarding these and other limitations in place.
Initial Answer
You can currently have 1 VPC per AWS account with up to 20 subnets. These are the beta limitations, complete their form if you need to lift them.
There is also a limit of instances you can run with a single AWS account, but again -- you can get them to up this limit. AWS has all kinds of limits in place, also on EBS volumes, elastic IPs, etc.. They can all be upped.
Things Have Changed.
Q: How many instances can I run in Amazon EC2?
You are limited to running up to 20 On-Demand instances, purchasing 20
Reserved Instances, and requesting Spot Instances per your dynamic
Spot limit per region. New AWS accounts may start with limits that are
lower than the limits described here. Certain instance types are
further limited per region as follows...
Source:
http://aws.amazon.com/ec2/faqs/#How_many_instances_can_I_run_in_Amazon_EC2
I highly doubt it. My understanding is that VPC is just a VPN, where you can tunnel as much traffic as it can support through the pipe. Are you confusing hosts with subnets? There is a restrictions on the number of subnets available. There is also a restriction on the number of hosts (I think it's a max of 20 hosts), but that's a general EC2 concern and not specific to VPC. Note that both restrictions can be overturned if you send an email to Amazon.
It depends on the type of the instance. Check your limits using the following instruction: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-resource-limits.html

Multiple users on Amazon EC2

Is it possible to have multiple users to manage an Amazon EC2 environment? I want to give access to several additional people to create machines on my existing billing account.
Amazon just announced AWS Identity and Access Management - http://aws.amazon.com/iam/
As of right now, it's in 'preview' mode, but this will allow you to have multiple AWS management accounts.
A few months ago Amazon announced Consolidated Billing. I never used it, but I think that is what you're looking for:
Consolidated Billing enables you to see a combined view of AWS costs incurred by all accounts in your department or company, as well as obtain a detailed cost report for each individual AWS account associated with your paying account. Consolidated Billing may also lower your overall costs since the rolled up usage across all of your accounts could help you reach lower-priced volume tiers more quickly.
Consolidated Billing Guide
This is absolutely possible using IAM service of AWS. With the help of IAM you can create users and give them specific permissions on various services of amazon.
You can try http://LabSlice.com. It's primarily for Virtual Lab Management (ie. playground environments), but may suit your needs.

Resources