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

learn more… | top users | synonyms (1)

11
votes
5answers
9k views

EC2 Instance will not stop or terminate after trying to create an AMI from the running instance

After a routine reboot of a Linux ec2 instance with 1 small root volume and 1 small attached volume I was not able to ssh into the instance. It is not clear why rebooting the instance caused it to be ...
0
votes
1answer
12 views

AWS EC2: Secure configuration via IP access list

My company have a network with a fixed IP address/IP address range. Is it save when I configure my Security group that all traffic from this IP address will be accepted and everything else will be ...
0
votes
0answers
9 views

Windows Server 2012 R2 Windows update process running even though Automatic updates disabled

I came in this morning to a catastrophe as all our servers (AWS EC2 boxes) were pinned at 100% cpu. I remoted on to one of the machines to grab the iis logs and noticed in task manager that the ...
0
votes
0answers
9 views

Jsp on Tomcat https port displaying incorrectly

I have a tomcat 8 server with http and https ports. All the jsp files run fine on http, but on https the jsp tags are getting output to the page and I'm seeing something like this. <%@ page ...
1
vote
1answer
3k 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
0answers
8 views

Websocket proxy on Apache connecting, but not returning data to client

I've almost got a working websocket to share port 443 with both WSS and HTTPS requests via Apache's mod_proxy module. The websocket client (in a browser) shakes hands, and connects. But then the ...
1
vote
3answers
1k views

Access mysql DB from different instance on EC2

I have 2 instances in EC2 server, one instance has the mysql DB and the content stored in it and another instance to access the data stored in the first instance. I need to create a user with read ...
0
votes
1answer
14 views

EC2 custom AMI in autoscaling group not running user data script

Similar to this question, My user data is: #!/bin/bash echo 'test' > /home/ubuntu/user-script.txt Using a standard Ubuntu AMI, this works fine. I have a custom AMI that I have created by ...
0
votes
0answers
9 views

How to add Virtual host on ec2 wiith Apache 2.4.18?

I'm trying to domain to point specific document root of EC2 instance. I've set Route 53 and and also set DNS to domain. Now domain points fine. I have also added host to host file of server. Now I ...
1
vote
3answers
2k views

How to reduce AWS EBS root volume size?

Enlarging an EC2 instance is easy like a breath (for instance, create an AMI, launch an instance from it and then change the storage size). But reducing it becomes more difficult. I’d like to reduce ...
0
votes
2answers
22 views

Requests to domain using wrong domain name

I`m getting strange requests to my domain using different domain host header -> as.eu.angsrvr.com . The requests are coming from all different ip addresses, different os, different browsers and seems ...
1
vote
1answer
1k views

Using TntDrive to mount Amazon S3 on a Windows Amazon EC2 instance

I currently have 2 Amazon EC2 Windows Server 2008 instances setup with a load balancer. My problem now is that I need both instances to be able to access a single file system source (I'm trying to use ...
1
vote
0answers
483 views

Amazon EC2 pem file stopped working suddenly

I was connecting to Amazon EC2 through SSH and it was working well. But all of a sudden, it stopped working. I am not able to connect anymore with the same key file. What can go wrong ? Here's ...
5
votes
4answers
6k views

Is it possible to connect a EC2 Linux instance via ssh without the key pair?

I can connect to my EC2 Linux instance via ssh using the key pair (*.pem). Is it somehow possible to connect it with ssh with out the pem file?
1
vote
1answer
1k views

Move files from ftp server to s3

I would like to set up an ftp server, where users will upload files, and for each file, put it on s3 storage, and delete it from the ftp server. (the server runs on ec2 ubuntu) Here are the stuff I ...
0
votes
0answers
10 views

Installing cmu-sphinxbase on AWS EC2 ubuntu instance

I've setup an app on EC2 using Elastic Beanstalk. It's a Ubuntu instance and I'm running a Rails app on it which depends on sphinxbase and pocketsphinx. I've ssh'd into the EC2 instance to install ...
0
votes
1answer
12 views

Can't connect MySQL EC2 master to RDS slave

I am having issues setting up replication between a MySQL RDS instance and an external master on EC2. As far as I can tell, everything is set up correctly but the slave never reaches the master and ...
6
votes
5answers
9k views

SSH access problem: debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY

We have a server XXX ON Amazon EC2. SSH is running on a standard (22) port. I placed my pubkey at the /.ssh/authorized_keys file The fun thing is that YESTERDAY it was working great! But today, I ...
0
votes
1answer
24 views

How to find ec2 instance that is processing my request that is forwarded by an Elastic Load Balancer

We use on amazon Elastic Beanstalk with autoscaling. The autoscaling gives us 10 EC2 instances working behind a load balancer. Now if i am right the load balancer adds a cookie "AWSELB" to forward ...
1
vote
2answers
953 views

AWS Custom AMI not running userdata script

We bake AMI's and lately I have wanted to run some user-data scripts to notify cloud formation when the instance is done booting and put it into service. I am using cfn-signal to do this. On the ...
0
votes
1answer
28 views

AWS: Is my VPC isolated from other clients/accounts

When I create a EC2 instance it gets a private IP address. I'm wondering if this address is from the subnet shared with other EC2 instances of other AWS clients. Would it be possible for other EC2 ...
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 ...
0
votes
0answers
25 views

How to keep ec2 instance running in auto-scaling group for at least an hour?

In ASG it makes no sense to terminate an on-demand instance until it runs (1, 2, n) hour(s) 59 mins because you pay for time to full hour anyway. How to configure termination to make sure that billed ...
0
votes
2answers
2k views

UDP/TCP ports on AWS ec2 public IP blocked

My goal is to receive/send UDP packet traffic on specific ports on my EC2 instance (on my eth0 private IP) via my public IP. I am asking because I have set my security group to allow all inbound/...
0
votes
1answer
46 views

EC2 and Apache HTTPD no access via IP but via DNS name

I have some trouble with my EC2 instance. I have a normal Amazon Linux with the standard Apache HTTPD. My problem is that I can't access the HTTPD via IP address (e.g. http://123.123.123.123/), but ...
2
votes
2answers
43 views

Ansible, AWS, other host based on tag

I am creating Ansible playbooks which create our system's infrastructure in AWS. Obviously dynamic inventories using ec2.py are involved. I first create a utility server, then a web server, and I ...
37
votes
6answers
45k 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 ...
0
votes
0answers
9 views

How to update a running CoreOS instance's user-data through AWS CloudFormation?

I have a running CoreOS instance triggered by AWS CloudFormation. I updated the CloudFormation template via CF designer, but found out that user-data of the existing instance was not updated. Is there ...
1
vote
1answer
32 views

Updating AWS CLI on Ubuntu 14.04

I installed awscli on my EC2 instance using apt-get install. The version is still aws-cli/1.2.9 and no longer updates if I use apt-get upgrade awscli. The latest release from what I Googled is 1.10....
0
votes
1answer
12 views

Unable to Activate Windows EC2 instance via KMS

I have an EC2 Instance Windows Server Datacenter 2008, and I'm getting an "Unable to Activate Windows" message. Even after following through the instructions here
0
votes
1answer
30 views

What is minimum IOPS for AWS EC2 General Purpose SSD (gp2)?

A while ago I read, that you get 3 IOPS per GB for gp2 SSD volumes. For example, that would be 24 IOPS for 8 GB volume. Now I read the documentation (https://docs.aws.amazon.com/AWSEC2/latest/...
0
votes
0answers
15 views

Does Data Pipeline supports schema transformation/evolution between RDS postgrey and amazon Redshift? Does it alter tables in Redshift accordingly?

I see Redshift is used as a data warehouse infra for large data set and I want to load postgrey sql data to Redshift for analytics. To copy the data I followed script method. What my script does is? ...
0
votes
1answer
18 views

IAM Policy to create a single ec2 instance

How can I create a policy that will allow a single user in a group to create a single ec2 instance in a particular VPC and AZ. and it can be destroyed by the same user or destroyed when idle for more ...
0
votes
4answers
373 views

EC2 Instance Monitoring [on hold]

I was wondering what would be the best way to monitor multiple EC2 instances, I saw Amazon offers CloudWatch but it costs money! Is there any alternative? I've heard that Cacti is particularly good, ...
0
votes
1answer
17 views

How to execute some commands before the user scripts in cloud-init

I'm trying to run some scripts and config using a multipart config. Content-Type: multipart/mixed; boundary="MIMEBOUNDARY" MIME-Version: 1.0 --MIMEBOUNDARY Content-Disposition: attachment; filename="...
3
votes
1answer
931 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 ...
0
votes
0answers
33 views

Difference in telnet of amazon ec2 instance using internal and public IP

I have a 4 node hadoop cluster on ec2. We have configured Hortonworks Hadoop (HDP version 2.4) through Ambari. I have opened all traffic for our all four instances internally and the office external ...
1
vote
1answer
27 views

t2.micro instance is always below baseline CPU usage but still consumes CPU credits - why?

I have a t2.micro instance running Ubuntu Linux on ec2 in Ireland, it's running batch jobs and I've tuned them so that the max CPU is pretty low - it never exceeds 10%. The docs say that: When a ...
8
votes
3answers
5k views

How can I create a swap partition on Amazon EC2 with ephemeral storage?

This is the output of df -k: Filesystem 1K-blocks Used Available Use% Mounted on /dev/xvda1 10317860 7059008 2734732 73% / none 847584 0 ...
1
vote
0answers
20 views

How do you properly deploy Angular application?

I'm writing an angular2 application, and want to deploy it on an EC2 instance. This is how I've currently set it up. Used gulp on the server to build typescript and scss. Then I setup nginx to setup ...
1
vote
1answer
3k views

Can't install new database in OpenLDAP 2.4 with BDB on Debian

I'm trying to install an openldap server (slapd) on a Debian EC2 instance. I have followed all the instructions I can find, and am using the recommended slapd-config approach to configuration. It all ...
0
votes
0answers
14 views

Change the root folder in a ubuntu server, using nginx with serverpilot [duplicate]

Right now there is a ubuntu server using amazon EC2 and serverpilot to build. The web files structure is like this: 1) /srv/users/serverpilot/apps/**site_a**/public/wp-content .. 2) /srv/users/...
2
votes
3answers
4k 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
votes
2answers
21 views

How do I enable certain Availability Zones in AWS EC2?

I am trying to launch a t2.nano instance running Debian in the us-east-1a region, but Amazon is only allowing me to choose from between us-west-2a, us-west-2b and us-west-2c which are all in Oregon ...
1
vote
1answer
1k views

Connecting jconsole using SOCKS to Amazon EC2

I'm trying to use jconsole to view stats on an EC2 instance by using a socks proxy created by SSH. I've tried the various scripts mentioned in the links below but to no avail: http://simplygenius.com/...
-2
votes
1answer
18 views

Does every EC2 instance has “Instance Store Volume”?

Does every EC2 instance has "Instance Store Volume"? When I am trying to create a t2.micro instance, I could not able to add "Instance Store Volume"
0
votes
1answer
27 views

Error mounting ebs in amazon ec2

I have accidently changed permissions for my /etc/sudoers and /etc folders and thereby I am unable to access anything through sudo. After that I detached my ebs volume from the instance and attached ...
0
votes
0answers
8 views

ec2 Ubuntu machine showing high load factor [closed]

I tried searching for my problem online but couldn't find anything helpful. I have an ec2 machine running Ubuntu 14.04. It's a t2 large instance (8 GB of RAM, 2 CPUs). I am running few python-Scrapy ...
0
votes
2answers
43 views

Internet is very slow because of many unknown connections from and to some amazonaws EC2 servers, Dropbox?

We are currently having issues with the internet speed at work. We asked for a global report to our ISP in order to understand what was happening, and in their report (in the "conversation report" ...
0
votes
2answers
37 views

Node.js app on ElasticBeanstalk cannot access private key file on server

I have a node.js application running on ElasticBeanstalk. Part of it's configuration is a path to a .p12 key file. When the application attempts to use the key file, a permission denied exception is ...