How many EC2 instances can be used within Amazon VPC? - amazon-ec2

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

Related

Do you get charged for a security group in AWS 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.

Mongolab instance in which availability zone?

From their UI, I can only see it is in AWS us-east-1, anywhere I can find out is it in us-east-1b/1c/1d ?
As discussed in this blog, availability zones are logical, not physical. So even if we did show which of our account's logical AZs your server was in (we put each server in a cluster in a different AZ), it wouldn't be meaningful to you. Rather than confuse, we leave the information out.
Availability Zones are not the same across AWS accounts. There is a common misconception that an AZ name like "US-east-1a" identifies a specific physical availability zone for everyone. The fact is that AWS can map/remap the same AZ name to different physical availability zones across multiple accounts. The Availability Zone us-east-1a for account A is not necessarily the same as us-east-1a for account B. Zone assignments are mapped independently for each account. This is important when our infrastructure or use cases spans across multiple accounts. Example: Infrastructure provisioned through Account-A and Load Testing Agents are launched through Account-B, and both pointing to "US-east-1a" may not map to same AZ.

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?

Amazon EC2 IO operations

I have a question regarding EC2.
Let's say I have a pure EC2 instance with no EBS volumes attached. For small instance type I still have 160 GB of data (which is lost on error, etc).
The question is if I pay for IO operations to these 160GB drive?
thank you
No, you won't have to pay exclusively for I/O operation on EC2 machine.
You are just paid for the data-transfer to the world and EC2 (client/server) + EC2 instance on an hour (I hope you know all this), in-case if you don't take a look at this: http://aws.amazon.com/ec2/pricing/.
Also, there is a nice tool provided by Amazon AWS to calculate your spending on AWS - take a look at it here: http://aws.amazon.com/calculator/.
It does charge money for io request. here is from the site. It charged for me, I am not sure for you tho. I found the io the very expensive. I have a simple blog with normal traffic, postgresql backend. That cost me like 25 bucks every month only for io access. After I found out that, I switched.
Amazon EBS Standard volumes
$0.10 per GB-month of provisioned storage
$0.10 per 1 million I/O requests
Amazon EBS Provisioned IOPS volumes
$0.125 per GB-month of provisioned storage
$0.10 per provisioned IOPS-month
Amazon EBS Snapshots to Amazon S3
$0.095 per GB-month of data stored

Where is the official documentation for Amazon EC2 rebooting instances for hardware changes?

I understand that the Amazon EC2 SLA says that EC2 guarantees a 99.95% uptime.
I've read in many places that systems built using EC2 should be designed to cope with individual instances being restarted e.g. ec2 rebooted my instance.
Where is the official Amazon documentation to say that instances may be restarted?
I do not believe Amazon publishes any documentation on rebooting EC2 instances for hardware changes. Instead, they will send customers a notice if there is going to be scheduled maintenance performed on the system. However, I think the issue here is more a matter of servers crashing unexpectedly. That, of course, they cannot announce beforehand. Also, don't forget that they calculate their uptime based upon 5 minute increments so you may have downtime that isn't counted towards their SLA because it was less than the five minutes and didn't get noticed.
Here is a link to the official Amazon EC2 SLA (I'm sure you've seen it). They don't give any indication that maintenance ever affects systems running in production:
http://aws.amazon.com/ec2-sla/
You can contrast this with Amazon RDS, which specifically states what maintenance is and when it occurs:
http://aws.amazon.com/rds/faqs/#12
I would imagine that they expect to never have downtime because of hardware upgrades. Since everything is virtual, they can move live instances to new hardware without taking them down.

Resources