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
23 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
16 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
12 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
20 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
33 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
21 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
24 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
495 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
1answer
24 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 ...
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
1k 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
35 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
0answers
27 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
1answer
58 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
61 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
46k 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
13 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 ...
2
votes
1answer
50 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
20 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
45 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
19 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
21 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
374 views

EC2 Instance Monitoring [closed]

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
26 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
980 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
36 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
32 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
6k 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
74 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 ...
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/...
-1
votes
2answers
25 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 ...
-2
votes
1answer
19 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
40 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
2answers
53 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
46 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
107 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 ...
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
35 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
29 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
22 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
49 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. ...
11
votes
3answers
5k 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
18 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 ...
1
vote
1answer
16 views

User specific network IP/Port permissions for Open VPN

We are using Open VPN to give secure access to our remote team to access our EC2 instances hosted on AWS. Usually we create one open VPN account for each team and give that account to the team. By ...