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
12
votes
4 answers

Allow scp/ssh for www-data user

I am on Amazon EC2 using Ubuntu 10.04.2 My web folder is owned by www-data so I want to be able to log into my server as www-data for ssh and scp. Thanks! Adding the line to my /etc/ssh/sshd_config does not seem to work. AllowUsers www-data
ambiguousmouse
  • 293
  • 1
  • 3
  • 7
12
votes
5 answers

How to get the amount of free disk space with CloudWatch?

Is it possible to get the amount of free disk space (df) with CloudWatch? If so, what metric represents the free disk space?
Jan Deinhard
  • 2,383
  • 5
  • 26
  • 33
12
votes
6 answers

How do you automate failover on EC2?

Of the folks managing their own clusters (i.e. not using/paying for Amazon Autoscale, Rightscale, Scalr, etc.), how are you managing your instances on EC2 and handling (e.g.) failover? I'm wondering if most folks just end up writing their own…
Yang
  • 1,665
  • 6
  • 21
  • 35
12
votes
2 answers

How to use Amazon Elastic IP?

I get a new elastic IP, I attach it to an instance, but it doesn't work? I can't ping the IP from my local computer either? Am I missing something here? How do I use Amazon Elastic IP? When is a new IP assign to an instance? When I turn it off and…
001
  • 491
  • 1
  • 11
  • 21
12
votes
3 answers

Simple Backup Strategy for Amazon EC2 instances / volumes?

You have entered Introductory Backups for Amazon EC2 EBS-backed Windows Images 010... I have been browsing my brains out to find a simple backup strategy for our single windows 2008 server running SharePoint Services. This is an EBS-backed image…
12
votes
5 answers

Keep alive timeout not being respected on Amazon ELB

I'm using Tomcat 6.0.24 on Ubuntu (JDK 1.6) with an app that does Comet-style requests on an HTTPS connector (directly against Tomcat, not using APR). I'd like to set the keep-alive to 5 minutes so I don't have to refresh my long-polling…
sehugg
  • 411
  • 1
  • 5
  • 13
12
votes
2 answers

AWS recommends 54 t2.nano EC2 instances instead of one m5.xlarge

We have deployed a web application on an m5.xlarge EC2 instance and when we try to buy an annual or 3 years reserved license, AWS recommends based on our current usage it is recommended to purchase 54 t2.nano instances instead of the m5.xlarge we…
11
votes
2 answers

How to max out performance EC2 instance

Disclaimer: I am a front end dev in a server kind of world. Hi guys. I have a server instance on EC2, the c5d.9xlarge, whose specs are: System: Ubuntu 18.04 vCPU: 36 threads/cores Memory: 72 GB Storage: 900 GB NVMe SSD Dedicated EBS Bandwidth:…
Martavis P.
  • 213
  • 1
  • 7
11
votes
2 answers

Adding second network interface to Ubuntu 18.04 on AWS EC2

The provided 18.04 AMI comes with one interface, and I am adding a second one with its own IP (for stuntman-server). However the instance is only responding to one elastic IP or the other, not both (for SSH and stuntman), while both private…
11
votes
1 answer

Filtering AMI by name using aws-cli

Is there a way to filter public AMIs that contain a particular string (say abcd)? The command: aws ec2 describe-images --filters Name=name,Values=abcd returns only those AMIs that exactly match Name=abcd
Jedi
  • 458
  • 1
  • 5
  • 20
11
votes
3 answers

How to find out when an EC2 instance was shutdown?

I have hundreds of instances in the EC2 web console. Some are shutdown. I can see that they were created many months or years ago. They seem abandoned and forgotten for a while but it's hard to tell if terminating them is safe. e.g. They could be…
user5994461
  • 2,919
  • 1
  • 18
  • 31
11
votes
1 answer

AWS CLI throws "Unable to locate credentials", the second time it's run

I'm trying to download some files from S3 to an EC2 instance using the AWS CLI (1.8.7) on startup using a User-Data Script. This instance has a IAM Role & Instance Profile with the appropriate permissions. Sometimes, the CLI will fail with the error…
11
votes
2 answers

Amazon SES and EC2 instance in different regions

We need to send transactional emails from our e-commerce website hosted on an EC2 instance. Our regular email service is hosted by Google. The problem is that we are based in Asia-Pacific region where SES is not available. So can we change our…
Golmaal
  • 312
  • 1
  • 5
  • 12
11
votes
1 answer

Best practice for managing AWS SSH .pem files within team

We are running a number of environments on EC2 using VPC. In each VPC we have a hardened bastion host configured which is used as the initial SSH entry point into the network. To access hosts within our private VPC subnets, a user first SSH to the…
Rob Lockwood-Blake
  • 213
  • 1
  • 2
  • 6
11
votes
2 answers

Disk root error on start instance on "Amazon Web Services (AWS)" EC2

I "Detach Volume" and "Attach Volume" again. After that I want "Instance Start" but I get immediately message Error starting instances Invalid value 'i-{id}' for instanceId. Instance does not have a volume attached at root (/dev/sda1) Q so where…
Bruno
  • 819
  • 1
  • 8
  • 19