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

learn more… | top users | synonyms (1)

1
vote
1answer
2k views

Connect to RDS from EC2 instance — both inside VPC

I have a VPC with two private subnets (two were required to get an RDS instance set up). I have a security group for this VPC, let's call it vpc-sg. vpc-sg allows TCP access on port 22 from my home ...
0
votes
1answer
643 views

Amazon Linux AMI for NFS between multiple EC2 servers

So I've been trying to create a Dropbox like system to allow multiple EC2 instances to work with the same files. I'm writing the programs that actually modify the files myself, and I'm not worried ...
0
votes
1answer
526 views

Amazon EC2 - httpd error on start port 80 - (98)Address already in use: make_sock

I'm unable to get httpd running on my AWS linux instance. I keep getting the following error whenever I try to start the service. $ service httpd start Starting httpd: (98)Address already in use: ...
0
votes
1answer
94 views

Server time is off by 5 minutes [closed]

I need to create a cron job to run a script. Changed the server timezone to Eastern following the first option in this guide. The timezone was changed successfully but when I run date I'm noticing ...
0
votes
0answers
56 views

ec2 instance access via browser on subdirectory not working

I try to access a subdirectory via public dns vom amazon. I configured a virtual host: DocumentRoot "/var/www/html" NameVirtualHost *:80 <VirtualHost *:80> ServerName www.example1.de ...
0
votes
1answer
85 views

slaves get a connection timed out with hdfs

I have 3 node instances - master, slave1 and slave2 SSHing between these nodes works fine. Here is the processes that starts on each node when I say ./sbin/start-dfs.sh master: SecondaryNameNode ...
0
votes
1answer
175 views

hosting two public facing website on single ec2 instance

I am trying to host 2 website xxx.com and yyy.com on a single amazon ec2 instance. So far this is what I have done. Created ec2 instance with Ubuntu and set up apache, mysql & Php On Ec2 I ...
0
votes
0answers
91 views

AWS IAM policy for Action ec2:CreateSnapshot fail when using an ec2:ResourceTag Condition

I am trying to limit a IAM policy for a Role to only allow creation (and deletion) of snapshot based on the presence of a specific Tag. This is my policy: { "Statement": [ { "Resource": ...
0
votes
1answer
128 views

Running multiple web sites on a single EC2 instance [closed]

To cut costs and simplify management, we have been thinking about running multiple web sites on a single Windows EC2 instance. Is that something you would recommend? what are the pros and cons? Can ...
0
votes
0answers
66 views

GlusterFS Fast Write Slow Read on CentOS EC2

As part of my testing stateless instances, I have setup GlusterFS in the following configuration: 1x m3.medium Amazon Linux GlusterFS Server, acting solely like a NFS share. 2x m3.medium CentOS ...
0
votes
1answer
157 views

AWS connecting between instances within availability zone

Few questions: Are us-east-1a, us-east-1b, and us-east-1d considered one or three availability zone? Say I have two instances within us-east-1a, one has a mongodb server, the other has a nodejs app. ...
0
votes
1answer
230 views

Problems with a PHP include from the command line (or cronjob) [closed]

I am trying to setup a cronjob on my AWS EC2 instance. There is nothing wrong with the actual entry in the crontab file but when I try to run the command in the command line I get this response. PHP ...
2
votes
2answers
326 views

EC2 & MySQL security

The current infrastructure contains two servers located in Amazon EC2: application server, and MySQL server. Concern: security of communication between the application server and the database, ...
0
votes
1answer
176 views

Extremely high bandwidth usage on Amazon EC2 instance

I have a m3.medium instance on Amazon EC2. Things are under development and my usual bandwidth usage is no more than 200 to 300 MB per day. I just noticed a spike in my EC2 bill and found out that I ...
1
vote
1answer
229 views

Telnet 3306 fails to connect to Amazon EC2

Ok, I know this has been asked a lot, but I've tried every advice I can find and I still can't telnet to my Amazon server on port 3306. Add iptables entry for accepting connections on port 3306: ...
0
votes
2answers
507 views

AWS ec2-user permission denied [closed]

I have my Apache HTTP server on Amazon Linux AMI. I am trying to install a Prestashop on my root directory subfolder as an ec2-user via SSH. cd /var/www/html but when I tried to create a directory ...
0
votes
1answer
50 views

How to set up routing tables in EC2, so that ping works

I have a wide open security group which I rely on for instances to be able to connect. I also have a private network of 172.*. addresses, as shown here: What do I need to do in order to allow ...
0
votes
0answers
27 views

SSH into EC2 instance through a “bridge” instance

I need to ssh into an EC2 instance which can only be accessed from another EC2 instance. So I've tried something like this ssh -N -L -i target_instance.pem localhost:22:ec2-user@10.0.0.1 -i ...
0
votes
0answers
87 views

MySQL replication across availability zones in AWS resulting in lag

I have 3 EC2 instances, each running MySQL. 2 are slaves replicating from the master. The master is located in the availability zone eu-west-1b. One of the slaves is in the same zone, and the other ...
0
votes
2answers
136 views

AWS opsworks build lifecycle and amazon linux

I've been using Opsworks recently and am really impressed by the GIT integration to deploy apps across my server estate. But I have a requirement due to an external library to use PHP 5.4 > The Amazon ...
1
vote
1answer
570 views

Amazon EC2 t1.micro instance [closed]

Is there Amazon EC2 t1.micro instance using HVM virtualization? Currently I'm trying to use it for Apache, Stratos, PHP, Cartridge. But it gives the following error: TID: [0] [STRATOS] ...
0
votes
0answers
28 views

Web server directory structure with additional volume for media (in Amazon EC2)

I'm re-building my server (LAMP) structure. I have now only one root volume that includes all data. Now i'm adding (EBS volume) for userdata like media etc. so i can just backup that volume and not ...
0
votes
1answer
42 views

Copy EC2 instance between regions

On the amazon ec2 Singapore region I have a single windows machine with an elastic IP. I want to close this machine to the San-Paulo region so I will have two independent machines with the same ...
0
votes
1answer
27 views

Unable to connect to Amazon EC2 and run pig

I have made an EC2 key pair and saved it to a location under my home directory on mac. Also I have changed permissions with 'chmod 600 /path/to/saved/keypair/file.pem'. Now I have followed the ...
0
votes
2answers
103 views

Keypair with Shellinabox?

I've got an Amazon EC2 instance with a keypair, and I want to setup shellinabox so I can ssh from any web browser. However, shellinabox only seems to allow password logins and I wasn't able to find ...
0
votes
1answer
46 views

On EC2, when does the host key change?

I have an instance on EC2 that I think I Stopped at one point or another. When I restart it and tried to ssh in, I got those messages about the host key having changed. But why? Is it because the ...
0
votes
1answer
107 views

Setting up port redirection on Windows Server 2012 in Amazon ec2

I have a couple of servers in amazon EC2 One server is a Windows Server 2012, is used to host a web application, there is an elastic ip address attached to this server. The second server is a linux ...
0
votes
1answer
95 views

Not able to assign elastic ip using knife

I want to create a EC2 instance using knife with an elastic ip assigned to it. Knife has the option --associate-eip but when I use this option it fails with error "ERROR: Elastic IP requested is not ...
1
vote
0answers
169 views

Sendmail in Ubuntu always fail [outgoing SMTPS(465)]

I'm using sendmail in ubuntu hosted at amazon ec2 hosting. Also I have a paid account (domain) in godaddy, so I want to use godaddy as relay host. I did EVERYTHING based on this tutorial: ...
0
votes
0answers
583 views

How to debug why systemd is idling and is not going on with the boot process?

I am trying to create a PV instance for AWS EC2. The template VM is based on CentOS 7, which is using systemd. The disk layout is two partitions: /boot (/dev/xvda1) and LVM2 (/dev/xvda2). The root ...
1
vote
0answers
159 views

Getting high CPU usage on EC2 running Plesk

I've been running Plesk on an AWS EC2 instance for over a year with no major issues. All of a sudden yesterday I start getting severe CPU spikes / periods which has made my uptime about 16% over ...
1
vote
2answers
289 views

How do I delete an AWS EC2 Instance?

I terminated an AWS EC2 instance because I incorrectly created it. I've read that this deletes an instance, but it keeps reinstantiating itself. How do I permanently and fully remove the EC2 instance ...
0
votes
1answer
554 views

ssh, telnet to AWS EC2 instance time out

I can't connect to my AWS EC2 Ubuntu instance. I appear to have the address and user right, the security group allows connections on all ports, and I'm using the right key pair. SSH and telnet keep ...
0
votes
2answers
116 views

How to set inbound rule for Amazon ELB based on path

I have a set of EC2 instances and a load balancer in front of them. I set up a security group for the ELB and set an inbound rule to allow HTTP traffic from anybody. However I would like to restrict ...
2
votes
2answers
80 views

CloudWatch not honoring alarm settings

I have a CPUUtilization alarm setup for my ec2 instance. The settings for the alarm are: CPUUtilization >= 95% for 15 consecutive periods of 1 minute (15mins total) We are still receiving alert ...
0
votes
1answer
66 views

How to migrate production environment from EC2-Classic to VPC?

I need to migrate production environment from EC2-Classic to VPC. For now I have one Elastic LB with a few EC2 instances behind it. My plan is: create a new LB balancer and add VPC instance create 2 ...
-1
votes
2answers
255 views

Join EC2 instance to my Local Area Network [closed]

Is it possible to join my EC2 instance (running Windows Server 2012 R2) to my LAN? I don't want to make it a domain controller, but I want to have it local enough that I can ping other devices in ...
1
vote
2answers
1k views

Nginx: 403 Forbidden on some files extensions

Hello I am using Amazon Ec2 with Nginx. I recently setup nginx and when I for example access blog.com/index.php it shows up in the browser correctly but when I access other file extension like JPEG, ...
1
vote
1answer
101 views

AWS give Apache permission to write to different EBS volume

I have an EC2 instance that is running Apache and my website (php files) is also on that EC2 instance. Website users will be able to upload and download files and I would like to store (user uploaded) ...
0
votes
1answer
232 views

SSHing between EC2 instances without having to provide key

I am trying to enable SSHing from one EC2 instance to another without a key. $ ssh ubuntu@slave gives me a permsission denied (public key) Whereas $ ssh -i aws-key.pem ubuntu@slave works correctly ...
0
votes
3answers
689 views

Ubuntu 14.04 Server HVM with EBS Free Tier AMI

I'm looking through the AWS Marketplace and Community AMI's to launch an instance on my newly registered free tier on Amazon. I'm very confused by the advertising of what's included in the free tier ...
0
votes
1answer
74 views

Is Amazon RDS overkill for small business site?

One of my clients wants a small business site run on Wordpress. I'm setting it up through Amazon EC2, and was curious if using Amazon's RDS service to run the wordpress installation is overkill. I ...
0
votes
0answers
24 views

How do I change the deploy directory when using Elastic Beanstalks CLI tool?

When I deploy using the EB CLI tool, with: git aws.push It deploys to /var/app/current How do I change that to deploy to /var/www/html ? Thanks
-1
votes
1answer
192 views

Can't access IIS web server on public IP

I have a Windows Server 2012 running within the Amazon Cloud. There, I've added the IIS web server role. Accessing the example page, and my own pages from within that server over the private IP is ...
-1
votes
1answer
73 views

Amazon Machine Image

I have a website running on the Singapore AWS servers. It is an EC2 instance and the website is built using django configured with Apache and MySQL. I took an Amazon Machine Image (AMI) of the ...
-1
votes
1answer
400 views

EC2 instance initializing with only 1/2 check thus not able to login into my Linux server

Hello friends, Our EC2 instance is initializing with only " 1/2 checks passed " after I detached and reattached my volumes (I did it for some specific debugging purpose). Thus i am not able to login ...
0
votes
1answer
51 views

EC2 Single Instance Returning Port 80 for SSL

I have a single instance EC2 LAMP server running on an elastic IP on AWS. I created a self signed certificate and enabled the mod_ssl. Currently, I am able to access my website successfully through ...
0
votes
0answers
129 views

Load balanced EC2 instances for high performance hosting?

I have a fairly hefty Dell machine with dual quad-core cpus and 32GB memory. On that machine I host a pretty busy forum, but the one machine does everything; web, cache, db, sphinx, etc. I also have ...
0
votes
2answers
91 views

Disable NOPASSWD sudo access for ubuntu user on an EC2 instance

How can I disable the passwordless sudo access for the default ubuntu user on an EC2 instance? Is it safe to do it?
0
votes
1answer
113 views

Zabbix Disk Monitoring showing value: no data

I'm running Zabbix 2.2.3 and for all my Amazon linux machines it shows the correct total amount of disk space but the free space is listed as "Value: No Data". I have another Ubuntu machine and disk ...