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

learn more… | top users | synonyms (1)

4
votes
0answers
225 views

Does AWS Elastic Beanstalk Swap Environment Url swaps environments for git push?

I have read the docs for zero downtime on aws but cant seem to understand what happens in this scenario? I have a environment running in production called 'red' I duplicate the environment as 'blue' ...
3
votes
0answers
61 views

Latency (wait ttfb) on EC2

My application is crawling a website. I use this crawler : https://github.com/rfussien/leboncoin-crawler On my dev environment, the latency is acceptable (3-4 sec) but on my prod server (ec2 ...
3
votes
0answers
201 views

Running service with systemd as default user via ansible in ec2 (requests password)

I'm trying to employ the following Ansible script (part of a playbook) to run unicorn via systemd for a rails app on EC2 (micro) instance: --- - name: restart unicorn command: psql -h {{ db_host ...
3
votes
0answers
148 views

Node.js Server with PM2 Crashing with error ENOMEM - but no memory leak

I have an EC2 instance running a node.js server (Express based). After deploying in a new environment, my service had started crashing almost instantly with spawn ENOMEM Errors like this one: ...
3
votes
0answers
69 views

IAM Action for `Get-EC2Instance` command in Powershell SDK

Calling Get-EC2Instance from EC2 instance and getting Get-EC2Instance : You are not authorized to perform this operation. Which IAM action do I need to add to my policy?
2
votes
0answers
33 views

After Upgrading to Ubuntu 15.10 from 15.04, EC2 Webservers are Crashing

I have a variety of Ubuntu machines on EC2 running in production, with about 30 that were upgraded from 15.04 to 15.10. With most of the machines, the upgrade went flawlessly and experienced no issues ...
2
votes
0answers
41 views

EC2 SSH Login Temporarily Hangs on “Entering Interactive Session”

I've been researching this for hours now, can't figure out why this is happening. Originally marked it as internet but checked my speeds (37 down, 10 up). I went from California to Oregon, and since ...
2
votes
0answers
49 views

Bootstrapping Windows EC2 instance with cfn-init command failing due to 1641 exit code

I'm having trouble with my EC2 instance cfn-init script. I'm attempting to have it install Powershell v5. When I execute the command: "command" : ...
2
votes
0answers
112 views

AWS keepalived backup immediately goes to MASTER

Referencing these two guides: http://awsadvent.tumblr.com/post/105141640154/aws-advent-2014-high-availability-in-aws-with ...
2
votes
0answers
109 views

SSL - Apache and Node.js on the same Amazon EC2 instance

I hosted my website on an EC2 instance, using Apache. SSL was also set up properly, running on HTTPS, port 443. Currently, I just added a chat application to the website using Node.js + socket.io. ...
2
votes
0answers
198 views

How to scale up one container using Amazon EC2 Container Service

I am new using Amazon ECS and I would like to know how to set up services in order to scale up / down one container easily. Here is my project architecture: website: container with the website, ...
2
votes
0answers
74 views

Tuning Amazon Linux worker tier

I have a worker tier that is using PHP process control (pcntl) functions to send multiple requests to the SNS service in parallel. My question is how best to tune MPM_PREFORK directives to get the ...
2
votes
0answers
627 views

AWS EC2 instance hyperthreading

I am currently doing some performance testing of web-apps that we have moved to AWS. One of the things we have noticed is that vCPU performance doesn't seem to be nearly as good as we'd expected. In ...
2
votes
0answers
693 views

Ubuntu on EC2 boot error after dist upgrade to 14.04: disk drive for / is not ready yet or not present

I just upgraded my Ubuntu 11.10 EC2 instance to 12.04, then to 12.10 and finally to 14.04 using the do-release-upgrade command each time. I arrived at 14.04 and the instance will not boot now, it ...
2
votes
0answers
3k views

AWS ELB session stickiness issue when multiple AWSELB cookies exist in a single request

I have two web apps - App-A & App-B - running in 2 EC2 instances (both web apps are running in both instances) fronted with an AWS ELB. The session stickiness is enabled using 'Application ...
2
votes
0answers
2k views

nginx service won't start after reboot + won't give output for service nginx status or start

A few weeks ago I configured an ec2 ubuntu server for my rails app. everything worked great. the database is on RDS and I use nginx and passenger for the rails app. anyway everything worked great ...
2
votes
0answers
200 views

AWS Dev-to-Production Build Process

I'm a developer, so not nearly as experienced as I would like to be with server administration. Essentially, I am trying to figure out how to create a base image (AMI) that can be used in development, ...
2
votes
0answers
382 views

How to make Statsd talk to Ganglia on EC2 (localhost)

As per topic, Im just trying to make this simple setup work. The services are running fine, but as far as I can tell statsd doesn't send anything over to ganglia. Ganglia is working fine I guess since ...
2
votes
0answers
643 views

How can I use huge pages and libhugetlbfs on a Debian EC2 PVM instance?

On my local machine (i7 9200) running Debian Wheezy amd64 I can get some significant speedups on some "big data"/HPC type stuff by: Following the instructions here to reserve some RAM for huge pages ...
2
votes
0answers
127 views

Programmatically add EC2 execute nodes to Grid Engine cluster

I am running Grid Scheduler (fka Sun Grid Engine) on Amazon Web Services. Master node is running all the time, but I want to programmatically add nodes to the cluster (also remove - but remove is not ...
2
votes
0answers
418 views

Phing SSH connection to Amazon EC2 fails to authenticate

I'm trying to connect to Amazon EC2 with phing. This is my script. <ssh username="ec2-user" pubkeyfile="C:\Users\asd\Downloads\aws-nr1.public" ...
2
votes
0answers
581 views

Connectivity issues with dual NIC machine in EC2

I'm trying to get some servers set up in EC2 in a Virtual Private Cloud. To do this, I have two subnets: 10.0.42.0/24 - Public subnet 10.0.83.0/24 - Private subnet To bridge these two, I have a ...
2
votes
0answers
2k views

EC2 Windows: Certificate for local system with Thumbprint … is about to expire or already expired

I regularly see this error in the Windows Error Log on one of my EC2 instances: Certificate for local system with Thumbprint aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa is about to ...
2
votes
0answers
3k views

EC2 Linux AMI with ffmpeg (no yasm?)

I'm running a Basic 64-bit Amazon Linux AMI 2011.09 (AMI Id: ami-953b06e1) and I want to install ffmpeg into it so I can use it convert video. These are the commands I run after firing up a new ...
1
vote
0answers
18 views

Windows Server 2012 R2 in AWS EC2, change resolution beyond 1280x1024

I have a Windows Server 2012 R2 instance running in EC2 performing some UI tests while nobody is connected to it. I use the following script to disconnect from Remote Desktop: for /f "skip=1 ...
1
vote
0answers
14 views

Least privilege AWS IAM policy for Foreman / RH Satellite to fully manage an EC2 compute resource

First post, so I apologize in advance if I miss some conventions. I'm trying to discover the least privilege access required for Foreman/RH Satellite to be able to fully manage an EC2 compute ...
1
vote
0answers
25 views

Unable to deploy a rails application using eb cli

I recently updated my environments configuration to :64bit Amazon Linux 2015.03 v1.4.6 running Ruby 2.2 (Passenger Standalone). After deploying my application using eb deploy i now get an error in my ...
1
vote
0answers
59 views

Problems installing software on AWS EC2 instance (Debian 7.8 'hvm')

After some issues due to the lack of support in required kernel for the network card in my machine (though I'm aware of how to compile the driver for my card, I don't want to do that, based on some ...
1
vote
0answers
48 views

Change SSH key on EC2 Instance

I want to change the SSH key file needed for logging in my Ubuntu EC2 Instance. I know it is not possible to do so directly from the EC2 Management Console so I tried changing it by doing the ...
1
vote
0answers
23 views

EC2 Shared Drive / VPN / Security Groups

I have an EC2 instance, running Win 2008. On it, I have a shared drive. Windows permissions are set properly. The server has a static IP through Elastic IP. I do not want to open this to the world. I ...
1
vote
0answers
52 views

Openswan IPSec VPN on AWS tunnel established but no traffic

I am setting up a tunnel with a telco using AWS/VPC/EC2/Centos7/Libreswan and have been stuck for weeks. Appreciate any help! I have 192.168.16.73 (VPN GW, EIP 52.76.x.x) and 192.168.16.116 ...
1
vote
0answers
22 views

AWS ELB: cloudwatch metric for open connections?

I'm setting up ELB, and I'm having trouble finding a suitable metric to use to adjust the size of the pool. RequestCount doesn't work because some requests are much cheaper than others. Latency ...
1
vote
0answers
57 views

EC2 automatic windows updates disabled by default on Windows Server 2008 R2 - why?

I spun up an Amazon virtual instance for Windows 2008 R2 Datacenter Edition and when I went into Windows Updates in control panel, automatic updates were turned off. I turned them on and checked for ...
1
vote
0answers
27 views

How to setup a security group on AWS that allows incoming traffic only by certain Elastic Beanstalk servers?

we have the following setting on AWS: 8 Elastic Beanstalk environments (4 QA, 4 PROD) read and write data. Typically, 1 environment (the API) always reads data from DynamoDB and RDS and 1 environment ...
1
vote
0answers
24 views

Is there a way to use Route 53 as a DNS failover, that activates a dormant (i.e. cheaper) EC2 instance that takes over?

Is there a way to use Route 53 as a DNS failover, that activates a dormant (i.e. cheaper) EC2 instance that takes over? My idea is to use a different provider to host most of the time, but if there ...
1
vote
0answers
22 views

How do I setup my cloud-init instance to fully conform to that of amazon-ec2 platform?

How do I setup my cloud-init instance to fully conform to that of amazon-ec2 platform? (shown @ http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html) We already made the ...
1
vote
0answers
37 views

Connect to RDS from EC2 - different AZ

I have set up a RDS instance with Multi-AZ support. It ended up in eu-west-1a. It is setup with "Publically available = YES" I have a EC2 instance in eu-west-1c, from which I want to access the RDS ...
1
vote
0answers
340 views

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 ...
1
vote
0answers
20 views

Setting Apache timeouts only half working

I have an EC2 instance running django and a page requires a post request which lasts for about a minute and a half. This initially timed out at 60 seconds, however tinkering with the httpd.conf ...
1
vote
0answers
23 views

How does AWS autoscaling distribute spot instances between AZs?

I am using an AWS Autoscaling group that distributes instances across multiple AZs, with spot instance bidding defined. What will happen when the spot price jumps in one of the AZ, causing the ...
1
vote
0answers
24 views

Why might a connection stay in TIME_WAIT for hours or even days?

Our environment is ubuntu 12.04 on EC2. I know TIME_WAIT is a good thing, and I know generally it's OK to see connections remain in TIME_WAIT for up to 2 minutes according to all the reading I've ...
1
vote
0answers
18 views

EC2 create-image vs. secure credentials

I'm trying to understand the security implications of granting access to the create-image EC2 action. The docs say that the create-image action does not support IAM resources so it seems like granting ...
1
vote
0answers
84 views

Symfony No Access to Cache - Red Hat 7

I'm running amazon EC2 VPC, normaly use Centos and I have no problem with it, but I have tried Red Hat Enterprise Linux Server release 7.1, and I have installed everything from scratch. I'm using ...
1
vote
0answers
211 views

504 Gateway Timeout on HTTPS but not HTTP

I configured an AWS Load Balancer. It is working find on HTTP, but when I try over HTTPS I get a 504 Gateway Timeout Error. I tried all the suggestions on AWS's help page (increase idle timeout), but ...
1
vote
0answers
69 views

Unable to diagnose downtime / memory issues with Apache and mod_wsgi

I have an Ubuntu EC2 instance (t1.micro, 600mb of RAM) running mod_wsgi on Apache, to serve a Django app. This is all behind a load balancer. The problem I keep running into is that I can only seem ...
1
vote
0answers
58 views

How install PHP 5.4, mod_security and mod_evasive together without conflict

I need create webserver with PHP 5.4, and install mod_security and mod_evasive. But when I try to join the php 5.4 and the mods on an EC2 server, it returns an error of conflict between the versions ...
1
vote
0answers
46 views

How does EC2 signal a reboot to an HVM instance?

What is the exact signal being sent? How can the instance (Linux in this case) handle it?
1
vote
0answers
60 views

Domain name redirect to Elastic IP address when typed in browser Amazon EC2

I Pointed my Godaddy domain to Amazon Elastic IP Address in godaddy zone file (poitned @ to my elastic IP address) ,When I write domain name in browser ,it redirects to Elatic IP address ,how to ...
1
vote
0answers
61 views

AWS service to expose key/value pairs to EC2 instances

Is there a centralized AWS service to expose key/value pairs to EC2 instances easily? I'd prefer a way that either exposes as a https endpoint, or injects them into environment variables without ...
1
vote
0answers
47 views

OpenVPN client on Amazon EC2 leading to SSH disconnect

I am running Ubuntu 14.04 on Amazon EC2.. I am trying to connect the EC2 instance to an OpenVPN so the traffic routes through the VPN.. When I do a sudo openvpn --config <config>.ovpn, the ...