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

learn more… | top users | synonyms (1)

0
votes
1answer
9 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
20 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 ...
0
votes
0answers
6 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 ...
1
vote
2answers
942 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
21 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
22 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
38 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
41 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
30 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
11 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
28 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
17 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
923 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
26 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
12 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"
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
1answer
25 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
0answers
21 views

Amazon AWS EC2 instance : select the public folder [closed]

Right now there is an ubuntu server There are two wordpress site in my instance: 1) /srv/users/serverpilot/apps/**site_a**/public/wp-content .. 2) /srv/users/serverpilot/apps/**site_b**/public/wp-...
0
votes
2answers
35 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 ...
0
votes
3answers
49 views

How to SSH to all instances in EC2 cluster?

I just created a cluster using spark-ec2. I followed steps here http://spark.apache.org/docs/latest/ec2-scripts.html . Now I want to configure all slaves (150), i.e., install Java 8 for both master ...
1
vote
1answer
1k views

Can Chef AWS cookbook query EC2 instance tags?

Chef has the official AWS cookbook (https://github.com/opscode-cookbooks/aws), which allows for spinning up of AWS resources, as well as updating of resource tags. Can the custom resources introduced ...
17
votes
6answers
14k views

Which is the fastest way to copy 400G of files from an ec2 elastic block store volume to s3?

I have to copy 400G of files from an elastic block store volume to an s3 bucket... Those are about 300k files of ~1Mb I've tried s3cmd and s3fuse, both of them are really, really slow.. s3cmd ran for ...
0
votes
1answer
33 views

EC2 instance rebooting after stop

I have an EC2 instance that I'm trying to stop by going to Running instances -> Actions -> Instance State -> Stop but after a few minutes it starts automatically. Is there a reason for this ...
1
vote
0answers
28 views

Access database using Public External IP - Bandwidth

In an amazon EC2 instance, we pay for each GB of data transfer in/out. Which means, when are sent to server, it's data transfer in. When a user access some website hosted there, data is being ...
0
votes
0answers
20 views

AWS EC2 Policy - Describe own properties

When creating AWS Policies, is there a way to create a policy that, when assigned to an EC2 Instance, allows querying its own tags without granting access to other instances tags? Is there a sense of ...
1
vote
1answer
43 views

How to install secrets safely on EC2 instances?

Context: Setting up an infra with some Auto-scaling groups and some non-scaling self-standing VMs. Some roles need secrets (private keys) which should be restricted to root or to specific users. ...
10
votes
3answers
4k views

Is it possible to have a 100% secure virtual private server?

I am curious if it is possible to have a VPS that has data on it that is not readable by the hosting provider, but is still usable on the VPS. Obviously there are some things that you could do to ...
0
votes
1answer
15 views

Can't connect (RDP) to Amazon EC2 instance after making changes to allowed cipher suites

In an attempt to get a better SSL Labs rating on an Amazon EC2 instance, I made changes to the allowed Cipher Suites on my Windows Server 2012 R2 EC2 Instance. After making the change, I rebooted the ...