Questions tagged [amazon-ec2]

Amazon Elastic Compute Cloud (EC2) provides self-service, on-demand, pay-for-what-you-use computing infrastructure resources.

The Amazon Elastic Compute Cloud (EC2) service is part of the Amazon Web Services cloud platform.

EC2 offers computing power in the cloud, on demand. The 'Elastic' part of the name refers to the ability to scale both up and down, as needed.

6563 questions
23
votes
1 answer

Python CGI on Amazon AWS EC2 micro-instance -- a how-to!

How can you make an EC2 micro instance serve CGI scripts from lighthttpd? For instance Python CGI? Well, it took half a day, but I have gotten Python cgi running on a free Amazon AWS EC2 micro-instance, using the lighttpd server. I think it will…
user595585
22
votes
1 answer

My DNS server is pushing 20mbps, why?

I am running a DNS server in EC2, and it was pushing about 20mbps yesterday when I checked my billing dashboard and found 1.86 TB of used data this month. That's a big bill for my small project lab. I never noticed performance drops and didn't…
Russell Anthony
  • 223
  • 1
  • 5
22
votes
3 answers

How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. So, there is a NAT server in public subnet which forward all outbound traffic from private subnet to outer…
jasonfungsing
  • 405
  • 2
  • 4
  • 6
22
votes
1 answer

Differences between "reboot" and "ec2-reboot-instances"

What are the differences, if any, between invoking reboot on an EC2 instance's command line and issuing the ec2-reboot-instances command from the AWS Command Line Tools on another machine? Does ec2-reboot-instances do anything that sending reboot…
chrisbunney
  • 503
  • 2
  • 9
  • 20
22
votes
8 answers

Where is log output from cloud-init stored?

Where does output from cloud-init (automatically runs scripts when starting up a virtual machine in the cloud, for example at Amazon EC2) go? I would like to know that my initialization scripts executed successfully. There is a…
Markus Miller
  • 1,974
  • 3
  • 15
  • 15
22
votes
3 answers

Approximately how much would it cost to make an AMI image from a EC2 Micro server?

If I do this 10 times a month, how much would that cost me?
Alex
  • 8,471
  • 26
  • 75
  • 99
21
votes
3 answers

How to start and stop AWS EC2 instance based on a time based schedule

Is there an easy way to start and stop AWS EC2 instances at a given time each day? This could save me quite a lot of money for my development and test servers.
Tim
  • 31,888
  • 7
  • 52
  • 78
21
votes
2 answers

How to specify an IAM role for an Amazon EC2 instance being launched via the AWS CLI?

I am using the "aws ec2 run-instances" command (from the AWS Command Line Interface (CLI)) to launch an Amazon EC2 instance. I want to set an IAM role for the EC2 instance I am launching. The IAM role is configured and I can use it successfully…
Skaperen
  • 1,094
  • 2
  • 11
  • 23
21
votes
5 answers

`sudo echo "bla" >> /etc/sysctl.conf` permission denied

Disclaimer: I'm pretty novice at sysadmin stuff. I'm trying to set up port forwarding in an AWS EC2 instance, this has to be done in the command-line because I don't want to go in and edit anything, it has to be automatic (it's part of a build…
bevacqua
  • 327
  • 1
  • 3
  • 11
21
votes
3 answers

Is it possible to have a 100% secure virtual private server?

I am curious if it is possible to have a VPS that has data on it that is not readable by the hosting provider, but is still usable on the VPS. Obviously there are some things that you could do to prevent them from reading anything... You could…
Mike
  • 425
  • 1
  • 4
  • 11
21
votes
4 answers

How to use "Instance Store Volumes" storage in Amazon EC2?

According to AWS I got 850 GB storage with the Medium EC2 server. But when i create an Amazon Linux AMI, I am unable to use the 850 GB provided. While creating it does show in Storage Device Configuration in Instance Store Volumes that its device…
rahulg
  • 407
  • 1
  • 4
  • 10
21
votes
8 answers

Which is the fastest way to copy 400G of files from an ec2 elastic block store volume to s3?

I have to copy 400G of files from an elastic block store volume to an s3 bucket... Those are about 300k files of ~1Mb I've tried s3cmd and s3fuse, both of them are really, really slow.. s3cmd ran for a complete day, said it finished copying, and…
aseba
  • 299
  • 1
  • 2
  • 5
21
votes
7 answers

How can I automatically cycle a new image in an AWS Auto Scaling Group?

I have a web application setup with a load balancer and auto scaling group to manage scaling. The source code is in a git repository so I don't have to update the images when the code changes, but occasionally the environment changes so we create a…
user99751
21
votes
3 answers

EC2/Route53: How do I assign my new domain name to an instance?

I have an EC2 instance. It's up and running with an Amazon IP that looks something like this: //ec2-xxx-xxx-xxx-xxx.compute-1.amazonaws.com/ I am sure it works fine. I bought a domain and then set up a "Hosted Zone" in Amazon Route 53 and it gave…
KevinDeus
  • 321
  • 1
  • 4
  • 9
21
votes
3 answers

Unable to connect to the AWS EC2 instance - "Host key verification failed"

I had set up a Ubuntu instance with a Rails package, deployed my app, and it is working fine. But when I try to do SSH, it's not allowing me for the remote login and throws errors like: Host key verification failed. The problem seem to be…
Jeevan Dongre
  • 741
  • 2
  • 17
  • 33