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

learn more… | top users | synonyms (1)

-2
votes
0answers
8 views

Choosing AMI for NAT Instance in AWS VPC

When I want to run an NAT instance in a VPC, I noticed there were 3 latest AMIs in us-east-1: amzn-ami-vpc-nat-hvm-2015.03.0.x86_64-ebs (ami-b0210ed8) amzn-ami-vpc-nat-hvm-2015.03.0.x86_64-gp2 ...
1
vote
2answers
1k views

Anonymous access to S3 bucket only from my EC2 instances

Is there a way to let anonymous access to a certain S3 bucket only from my EC2 instances (all of them) within a single AWS account? I know I can use IAM roles, but I found it's just too many moving ...
2
votes
3answers
3k views

Production Instance : CLOSE_WAIT Connection Issue

I am using 10EC2 Instances behind 1 ELB. And ELB configured 80 to 8080 and 443 to 8080 port. And all 10EC2 instances having installed with Apache Tomcat, total request on ELB around 8000 to 10000 in ...
1
vote
0answers
16 views

Amazon EC2 gives internal server error when posting via Python

I have a problem with python API and MY ec2 instance. When I am trying to post a json I am getting an error like 500 INTERNAL SERVER ERROR {"error_message": "Sorry, this request could not be ...
0
votes
2answers
107 views

Where do I find bootsect.exe for Windows 2012 R2 machine running on Amazon EC2?

I need bootsect.exe utility to fix one of my EC2 volumes (make it bootable again after I removed admin account with sysprep) but I don't have access to 2012 R2 setup disk where it's supposed to come ...
-2
votes
0answers
12 views

AWS: Amazon Linux vs. Ubuntu for Meteor

I'm creating a Meteor app solely dependent on AWS. In doing so, I'm staying far away from the usual Modulus.io for the app and Compose.io for the database. I'm just having trouble picking the AMI. ...
0
votes
0answers
41 views

AWS RDS db.t2 instance performance thresholds & monitoring

We have been rolling out a standard web server configuration for mainstream CMS software like Drupal & WordPress, with the server & storage on EC2 / EBS and the database for those software ...
0
votes
1answer
11 views

Installing compat-libstdc++-33 on RHEL 7

As part of an Oracle install I need to install the compat-libstdc++-33-3.2.3 (x86_64) package. However no matter what variant of the package I try to install with yum, it can't be found ...
0
votes
2answers
2k views

Unable to ssh EC2 using password - “Disconnected: No supported authentication methods available (server sent: publickey)”

I have followed the following steps https://coderwall.com/p/j5nk9w This is what I did 1) $ sudo useradd -s /bin/bash -m -d /home/newuser -g root newuser Entered the Password for the newuser 2)$ ...
0
votes
1answer
1k views

How do you get multiple ports working with nginx proxy_pass and Node Express?

I have multiple node instances running each on a different port. (8000, 8001, etc.) I also have nginx running on port 80. What I am trying to do is allow a user to enter my site via a single domain ...
5
votes
5answers
6k 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 ...
5
votes
4answers
9k views

Mounting an attached ebs volume in EC2

I've created an EC2 instance, created an EBS volume, attached it to the running instance, and successfully ssh'ed into my instance. The drive is attached as /dev/sdf Next, I tried mounting the drive ...
0
votes
1answer
18 views

Questions about AWS auto scaling and load balancing [on hold]

I have little bit knowledge of AWS EC2. Previously I have bought a mx3large instance and did all my necessary installations on the server and cloned my code there but didn't map domain to the system. ...
5
votes
1answer
2k views

Creating an EC2 AMI Image from a running instance vs. from a volume snapshot

I want to backup a Linux-based EC2 instance while it is running with no downtime, and then later on launch a new instance. (The instance is running a web server and Postgres database.) I found there ...
-2
votes
0answers
11 views

Site experiencing downtime due to Instance failing System and Instance checks [on hold]

I have one site running over one aws ec2 instance and all was working fine since last one year but suddenly this site is receiving downtime. When i looked for the problem i found out that instance is ...
0
votes
3answers
25 views

Amazon EC2 Security Group inbound rule with a dynamic IP

I'm looking for clarification on what I see as a potential problem with EC2 Security Groups. I'm setting up a Security Group for connecting to linux instances. I've created "anywhere" rules for HTTP ...
1
vote
1answer
20 views

Access static files on Tomcat directory using VirtualHost

I am running a Java webservice (JAX-WS) on Tomcat 8 from my AWS EC2 Linux instance, and I have a subdomain pointing to the service, so that I can call the service with URL ...
18
votes
1answer
12k 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 ...
18
votes
2answers
23k 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 ...
0
votes
1answer
17 views

Assign Elastic IP to VPC EC2 instance on boot

I have a script that uses ec2-associate-address that I have set in a cron job to run on boot. The idea is to use this instance as a spot instance that will automatically get its public IP assigned on ...
1
vote
1answer
23 views

Change in IAM role for EC2 instance not affecting already running EC2 instance

I have an IAM role for EC2 instance (so called Instance Profile) with two policies attached, giving full access to SQS and S3. There is an EC2 instance running associated with this role. It runs ...
0
votes
0answers
19 views

How can I su -l user -p password from a scripting language running by apache server? [duplicate]

I ahve been trying to run crontab by a PHP script that is run by my apache web server. The user is apache and I have found out by running shell_exec that apache cannot run crontab: $cmd='crontab ...
1
vote
1answer
900 views

Sending email is often very slow after changing to VPC instance

We changed our micro instance to a small within a VPC and now sending email is sometimes fast and quite a lot of the time very very slow. Its as if our web pages are going to hang and then they ...
0
votes
0answers
22 views

nginx downloads .php files - error configured

I'm trying to follow this tutorial in order to create an amazon machine with nginx and php: http://stale.coffee/ec2-micro-instance-adventure-nginx-php-mysql.html All good, I opted to use ...
1
vote
2answers
34 views

Secure EC2 instance from logging without .pem file

I see here and here (under Connecting to Your Linux Instance if You Lose Your Private Key) ways to access EC2 instance without a .pem file that was created when the instance was created. I would like ...
5
votes
2answers
2k views

AWS CloudFormation: VPC default security group

I have a cfn stack that (among other things), creates a VPC, several security groups, and a handful of EC2 instances. It's trivial to assign security groups that are created within the stack to ...
1
vote
2answers
24 views

How to get the public DNS of an instance from another instance?

Suppose I have launched 5 EC2 instances. What is the easiest way to get the DNS and ip's of all the instances from a particular instance's terminal?
-1
votes
0answers
18 views

How to set up load balanced Ejabberd servers on multiple EC2 instances?

I have no problem setting up clustered Ejabberds on private network but I cannot figure out how to set up load balanced Ejabberd servers on multiple EC2 instances. I basically want to have two EC2 ...
0
votes
0answers
18 views

i cannot access my amazon ec2 instance by visiting ip address or dns (associated with it) of the instance

Good Day. I cannot access my amazon Ec2 instance from browser by visiting its domain or elastic ip. Ec2 instance is running properly and i have checked it security group as well. I dont know what to ...
0
votes
0answers
20 views

Ansible mercurial clone hangs on deploy, runs fine on subsequent runs

I have an Anisble playbook that does the following: Launches an EC2 Instance Switches to that instance in a second play within the playbook, and configures the instance for our specific purpose ...
0
votes
0answers
13 views

AWS and security groups as inbound

I would like to do the following but it never works: nginx load-balancer ec2 server (sec group sg-1111) inbound - port:80 - all traffic application ec2 server inbound - port:9000 - sec group sg-1111 ...
1
vote
1answer
2k views

with ec2, are all internal instances able to connect to each other, or does the security group apply?

Just a little confused, normally a firewall applies to everything externally, and all internal servers (instances) can connect freely with each other. With AWS, it comes with a firewall/security ...
0
votes
1answer
29 views

ec2-automate-backup-awscli.sh - Purging is not working?

I have recently implemented a script that creates snapshots of my volumes. I run this script via a cron job which works very well except for the part that deletes snapshots. When I run the command to ...
0
votes
0answers
11 views

After a while cannot ssh to amazon aws ec2 machine

I've read several similar questions, and checked my username is ubuntu as I'm running ubuntu instance, my pem key is 400 permissions and .ssh folder is .600 ssh -i ~/.ssh/my-key.pem ubuntu@myserver ...
-1
votes
2answers
18 views

AWS create an alias for my EC2 instance IP

I'm not expert in anything related with networks. I've reasearched through Internet but I'm not able to get with the solution for what I need. It's simple. I've bought a domain in GoDaddy.com and ...
1
vote
1answer
249 views

Auto-login to aws ec2 instance running windows on startup

I'm trying to run a service on startup of a windows instance on amazon. So far it is a manual process where I have to start rdp in, log in and then start the process. I'd like it when the instance ...
2
votes
1answer
21 views

AWS EC2 snapshots - how long should they be retained? [closed]

How long should daily EBS-backed EC2 snapshots be retained? We're using ec2-automate-backup to backup (daily) two EBS volumes - OS and data - pertaining to a web application. If I've understood, in ...
1
vote
1answer
1k views

Open ports between Elastic Beanstalk and one EC2 instance on AWS

I currently have the following setup: An API (Node.JS) running using Elastic Beanstalk, which is currently only running one EC2 instance A MongoDB instance running on a seperate EC2 instance ...
4
votes
3answers
6k views

What permissions in IAM do i need to start EC2 instances with chef knife?

Q1: I am trying to create user in IAM AWS console that has restricted permissions only to start new instances using knife ec2 method. Currently only full access with policy "Amazon EC2 Full access" ...
0
votes
0answers
20 views

capistrano deploy cannot mkdir

I'm deploying a rails project to a new Ubuntu 14.04 EC2 instance with Capistrano 3.4.0. Capistrano connects successfully, but when it gets to the git clone step, it fails with: DEBUG [afb89c4f] ...
0
votes
0answers
18 views

what is the correct runlevel for “Stop” in ec2?

I am trying to make a script to gracefully shutdown some application servers, I put the scripts in /etc/rc0.d but when I stop the ec2 instance on amazon, it won't call my script. what is the correct ...
13
votes
6answers
3k views

How to know if a machine is an EC2 instance

I would like to run some scripts on hosts which are EC2 instances but I don't know how to be sure that the host is really an EC2 instance. I have made some tests, but this is not sufficient: Test ...
2
votes
4answers
2k views

Print external host name of EC2 instance

I can get the internal hostname of an instance with the hostname command. How do I get the external host name from within the instance? Specifically I'm on EY and using the ey ssh command, I want to ...
0
votes
0answers
42 views

Apache hangs frequently, needs restart to work again

i am having issues tuning apache. My current mpm event configs are <IfModule mpm_event_module> ServerLimit 24 StartServers 8 MinSpareThreads 512 ...
-1
votes
0answers
24 views

AWS EC2 Ubuntu Server /etc directory Permission Change Accidentally

I have Amazon EC2 instance with EBS backed Volume.yesterday accidental change my /etc directory to chmod -R 777 .Now all the things stuck and then i create a new instance by taking it's AMI but still ...
9
votes
3answers
2k views

What's the easiest way to back up EC2 instances automatically?

I'm worried I might log in one day and my fully configured instance has been removed. I would like to be able to back it up daily to S3 but frustratingly this is not a simple setting in the console. ...
1
vote
1answer
17 views

Set VirtualHost for Tomcat 8 webservice on AWS EC2

In addition to the default Apache on AWS EC2 Linux I have installed Tomcat 8 and deployed a webservice on it. The current URL (which works) is http://example.com:8080/MyService/api/generatePath I ...
0
votes
2answers
1k views

cannot connect to MS FTP 7.5 on Windows 2008 on Amazon EC2 instance

I have just installed the MS FTP 7.5 upgrade on my Windows 2008 Server (Service Pack 2) running on an Amazon EC2 instance. In the FTP Firewall Support settings for the server in IIS Manager I have ...
2
votes
1answer
1k views

How to configure network on EC2 instance launched by Vagrant?

This is my AWS setup: 1 VPC with: default public subnet, 10.0.0.0/24 1 EC2 micro instance, private 10.0.0.172 and public Elastic IP 1 RDS instance, running MySQL The EC2 instance has network ...
0
votes
1answer
647 views

EC2 instance not working with Amazon route 53 domain name

I have an EC2 instance running with following details - t2.micro - virtualization type = hvm - Elastic IP assigned = 54-152-108-137 - Public DNS assigned = ...