Questions tagged [amazon-ec2]
Amazon Elastic Compute Cloud (EC2) provides self-service, on-demand, pay-for-what-you-use computing infrastructure resources.
422
questions
0
votes
1
answer
607
views
Solution for PHP / MySQL website loading fast in multiple regions [closed]
I host am ExpressionEngine based website on a single Amazon EC2 instance in the US East (Virginia) region. I use Ubuntu.
The website allows members to post their content, and displays it for other ...
0
votes
1
answer
4k
views
Setup Domain Controller and Active Directory on Amazon EC2 as Primary AD [closed]
I am planning to deploy an Active Directory and Domain Controller on AWS for my company. It will primarily be used for these:
User Authorization (Login/Logoff Process)
File Sharing / Management (...
0
votes
1
answer
83
views
Do you need separate IP addresses for each nameserver for an EC2 webserver?
Do you need separate elastic IP addresses for each nameserver - say NS1, NS2 - for an EC2 webserver?
0
votes
1
answer
108
views
Making webpages on the server accessible
I have just set up a LAMP EC2 instance using rightscale when I got to the link:
"http://ec2-xxx.compute-1.amazonaws.com/"
I get the standard apache welcome page. Now on my server I have the ...
0
votes
2
answers
3k
views
Dig -x equivalent for AWS Route 53
I have an IP number associated with an AWS Elastic IP (EIP). I'd like to know, what DNS records in my Route 53 domain are associated with that A record's IP.
In a traditional DNS service, I would ...
0
votes
1
answer
544
views
EC2 Instance Store to EBS Can't connect to SSH
I followed every line on this tutorial:
http://webkist.wordpress.com/2010/03/16/creating-an-amazon-ec2-ebs-ami-from-a-running-instance/
to create a EBS instance using a AMI based on a Instance Store ...
0
votes
1
answer
2k
views
Can someone help me figure out an efficient auto scaling configuration? [closed]
This is my first time releasing a web app. I'm going to using Django with Nginx and a couple of other scripts that have been piped. I wanted to know which auto scaling strategy I can use.
Right now,...
0
votes
6
answers
3k
views
realtime sync of files between instances
In my scenario, i have 2 ec2 instances and need to sync the files between them in realtime. Can I do this with rsync? Can anyone please suggest how to schedule a rsync?
120
votes
7
answers
159k
views
What Linux distribution is the Amazon Linux AMI based on?
Amazon Web Services (AWS) offers an officially supported Amazon Machine Image (AMI), but it doesn't indicate which Linux distribution it's based upon.
Is the official Amazon Linux AMI based on ...
89
votes
4
answers
18k
views
Why is TCP accept() performance so bad under Xen?
The rate at which my server can accept() new incoming TCP connections is really bad under Xen. The same test on bare metal hardware shows 3-5x speed ups.
How come this is so bad under Xen?
Can you ...
58
votes
5
answers
74k
views
How to delete Instances in Amazon EC2 ? Change Pair Key?
How to remove Instances ? I test some Instances and now I terminate it. So, I want to remove it. I can't find delete or remove action. I just found terminate.
How to change the pair key ? I don't ...
50
votes
5
answers
48k
views
Can't connect to EC2 instance in VPC (Amazon AWS)
I've taken the following steps:
Created a VPC (with a single public subnet)
Added an EC2 instance to the VPC
Allocated an elastic IP
Associated the elastic IP with the instance
Created a security ...
49
votes
7
answers
63k
views
How can I prevent a DDOS attack on Amazon EC2?
One of the servers I use is hosted on the Amazon EC2 cloud. Every few months we appear to have a DDOS attack on this sever. This slows the server down incredibly. After around 30 minutes, and ...
48
votes
8
answers
90k
views
Why can't I connect to Amazon RDS after setting it up?
So, I just created the Amazon RDS account.
And I started an instance of database.
The "endpoint" is:
abcw3n-prod.cbmbuiv8aakk.us-east-1.rds.amazonaws.com
Great! Now I try to connect to it from one ...
46
votes
5
answers
98k
views
Why can't I reach my Amazon EC2 instance via its Elastic IP address?
The server works fine via the Amazon assigned DNS entry, but I cannot reach it (using a browser) via the Elastic IP address Amazon assigned the box. Ping does not work either. I am trying to confirm ...
44
votes
3
answers
40k
views
What's best practice for communication between Amazon EC2 instances?
I've been setting up Amazon EC2 instances for an upcoming project. They are all micro instances, running Ubuntu Server 64bit. Here's what I've setup so far:
Web Server -- Apache
Database Server -- ...
42
votes
5
answers
104k
views
Bandwidth limits for Amazon EC2
I have a micro instance on Amazon EC2 cloud.
Also the instance is small and it has vary low CPU and EAM usage but it
generates a lot of content, so it can be considered like a web server
serving ...
35
votes
4
answers
62k
views
How to make EC2 user data script run again on startup?
After cloud-init runs a user data script on the first boot of an EC2 instance, a state file is presumably written so that cloud-init won't run the script again on subsequent reboots. There are cases ...
35
votes
4
answers
52k
views
Where does Amazon publish the range of IP addresses used for EC2 instances by region?
How can I keep updated of changes to the range of IP addresses that Amazon will use for EC2 instances. I want to add a range of IPs to my firewall settings to allow access to my 'ground based' mysql ...
32
votes
2
answers
33k
views
AWS, Bandwidth and content delivery
My question is about Virtual Machines and delivering their content over the servers connection to the internet.
I have an Ec2 windows instance, and its network connection appears to be 100mbps
If I ...
29
votes
5
answers
78k
views
amazon linux 2 ami - aws - How to install mysql in Amazon Linux 2?
I am trying to install mysql in amazon linux 2 ami and am not able to do it.
sudo yum install mysql56-server -> doesn't work
amazon-linux-extras list -> doesn't list mysql
I do not want ...
28
votes
5
answers
38k
views
How to download public key from Amazon AWS?
I have a running amazon ec2 linux instance associated with a keypair (p1) and I have downloaded the private key to my home desktop. Now at work, I created a keypair (p2) on my work desktop and ...
28
votes
3
answers
40k
views
Nginx Solution for AWS Amazon ELB Health Checks - return 200 without IF
I have the following code that is working on Nginx to keep the AWS ELB healthcheck happy.
map $http_user_agent $ignore {
default 0;
"ELB-HealthChecker/1.0" 1;
}
server {
location / {
if ($...
26
votes
8
answers
50k
views
Why can't I ssh into my new EC2 Instance?
I created a new instance (tiny, 64 bit AMI linux from Amazon)
Created a new key pair called "mir".
I downloaded mir.pem and put it in my ~/.ssh folder.
I even did ssh-add mir.pem.
Then I tried to ...
25
votes
6
answers
24k
views
Windows Password won't decrypt on AWS EC2 even with the correct private key
I created a new Windows instance on AWS EC2, using a keypair I created by uploading my public key from my local machine.
The instance launched fine, but it won't decrypt the password. It reports:
I'...
25
votes
5
answers
86k
views
Why can't I ping my freshly set up amazon web service EC2 instance?
I was following this tut on how to set up a EC2 instance on Ubuntu but qhen trying to execute ssh command on my IP address, I had an operation Timeout.
So I tried to ping it but no chance neither.
...
23
votes
9
answers
29k
views
How to get Autoscaling group Instances IP adresses
How can I get private IP adresses of all the instances which are part of an AutoScaling group.
I am trying to do some operation on all the instances which are part of an autoscaling group.
22
votes
3
answers
69k
views
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 ...
21
votes
3
answers
41k
views
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 ...
21
votes
3
answers
39k
views
EC2 Update my existing AMI
I'm using Elastic Load Balancing to load balance my Auto Scaling Group, for that I have a private AMI that hold my application server (Tomcat) and my web app deployed to it as war ... Now everything ...
21
votes
3
answers
38k
views
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 ...
21
votes
1
answer
24k
views
How can I run the Ubuntu EC2 AMI images locally?
I've downloaded the Amazon Ubuntu EC2 AMI images (from http://uec-images.ubuntu.com/releases/10.04/release/) and I am trying to run it locally on my linux desktop. Is it possible to run the AMI using ...
21
votes
2
answers
53k
views
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 ...
20
votes
2
answers
15k
views
ec2 rebooted my instance?
I found out that my CentOS 5 server on EC2 was rebooted, without my command to do so. I did not even log in on the day it was rebooted. When I look at 'last' in linux, it says:
jeroen pts/0 ...
20
votes
2
answers
15k
views
AMI with or without reboot on AWS EC2
When creating AMI's from an EC2 instance I always check "no reboot", I've been wondering, what are the pros/cons of creating images with/without a reboot? Does keeping the server live affect the ...
20
votes
3
answers
78k
views
How to set up port forwarding on Amazon EC2
I have a web application running on Amazon EC2. It listens on port 9898.
I can access it by entering the ip address and port number.
e.g 1.2.3.4:9898
However, what I'd really like to be able to do ...
19
votes
3
answers
36k
views
Issues with EC2 Elastic Load Balancer DNS and routing
We're trying to run a fairly straightforward setup on Amazon EC2 - several HTTP servers sitting behind an Amazon Elastic Load Balancer (ELB).
Our domain is managed in Route53, and we have a CNAME ...
18
votes
3
answers
40k
views
Where do I find my EC2 private key?
I'm trying to set up the EC2 API tools and I'm stuck because I cannot figure out where I can obtain the file pointed to by the EC2_PRIVATE_KEY environment variable (I believe I have the EC2_CERT).
Of ...
17
votes
4
answers
32k
views
Fastest time to get an EC2 instance running
I am considering moving from a VPS to EC2.
EC2 is elastic and so is its pricing; I could boot my instance on demand, then let it shut down if it isn't active by the end of some hourly period.
How ...
16
votes
5
answers
25k
views
How to make s3fs work with IAM roles?
We are using IAM roles to maintain the machines. We now planning to mount the s3 to our ec2 instances and do the processing as per our need. We been using s3fs tool for mounting.
But that doesn't ...
15
votes
2
answers
29k
views
How to create a local backup of a remote Amazon RDS MySQL database?
How do I create a local backup of a remote Amazon RDS MySQL database? What I need to know is how to make a complete full local backup of a MySQL database (not a remote Amazon snapshot) that can be ...
14
votes
3
answers
20k
views
How do you create a zone apex alias that points to a Elastic Load Balancer in the Route 53 GUI?
I created aliases for my domain name's zone apex using the ELB CLI as described in Elastic Load Balancing Developer Guide. I also added a AAAA record using the --rr-type AAAA flag, which is not ...
14
votes
3
answers
4k
views
Amazon EC2 Backup Strategy
I have a couple Web server/DB server setups using Amazon's EC2. I am currently taking daily snapshots of all my system and EBS drives that contains all of my application files, DB files, source code ...
14
votes
1
answer
20k
views
Where's my ephemeral storage for EC2 Instance
I have looked through the following questions, notably How to use "Instance Store Volumes" storage in Amazon EC2?
However, it didn't answer. I created a EC2 small instance with EBS as the ...
14
votes
3
answers
18k
views
EC2: multiple ssh keys for an instance?
Is it possible to create more than one private key to SSH into an EC2 instance? What's the general best practice for this? We have multiple users who need to SSH into the servers and distributing one ...
14
votes
1
answer
51k
views
How do I link a security group to my AWS RDS instance
I have a postgres db setup on RDS. It is running great. However, I want to link this to a set of autoscaled EC2 instances sitting behind an ELB that all reside in a single EC2 security group.
I've ...
13
votes
4
answers
1k
views
Is it dangerous to reveal my EC2 instance ID?
In Stack Overflow answers (like this), I often take screenshots which include Instance ID's belonging to me. Is it a bad idea to reveal these?
13
votes
6
answers
26k
views
Setting up Amazon Cloudwatch to get an alert when you server is down
I have an instance running on Amazon EC2 that I turned into a webserver.
Now I have been looking at cloudwatch, but I do not know if it is the correct tool for the job. Basically I want to get ...
13
votes
4
answers
27k
views
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 ...
12
votes
3
answers
6k
views
Automatically mount SSD instance storage on AWS EC2 in Ubuntu 16.04
I am using an Ubuntu 16.04 EC2 from AWS on c5d.2xlarge HW. It comes with a 200 GB SSD called /dev/nvme1n1.
I am able to mount this drive using:
$ sudo mkfs.ext4 -E nodiscard /dev/nvme1n1
$ sudo ...