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
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
2answers
45 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 ...
0
votes
3answers
58 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
44 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 ...
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 ...
0
votes
1answer
1k views

Elastic Beanstalk S3 access via .ebextensions

I have a simple file in my .ebextensions folder: 00-myconfig.config Resources: AWSEBAutoScalingGroup: Metadata: AWS::CloudFormation::Authentication: S3Access: ...
1
vote
2answers
92 views

Attaching many volumes to an EC2 instance

I've got an EC2 instance running Ubuntu and want to attach some 50-60 EBS volumes to it. However, the EC2 console says I can use only /dev/sdf through /dev/sdp, so I'm limited to 11 volumes. Is there ...
0
votes
0answers
11 views

Connect an EC2 instance to your office/home gateway [duplicate]

I am wondering what the process is for connecting an Amazon Web Services EC2 instance to your router to make the instance act as if it is on the LAN. I have been reading about AWS VPC, but have just ...
0
votes
0answers
34 views

How to restrict access to EC2 from outside but allow from Elastic Beanstalk instances?

This is the situation: We have an EC2 server which runs Elasticsearch and an Elastic Beanstalk (EB) environment. They both are in the same VPC. This is my goal: Allow access to EC2 (9200 port) only ...
1
vote
1answer
74 views

OpenVPN | How to make the server communicate to another server in LAN via OpenVPN gateway?

I've been trying my EC2 instance (OMD) to communicate to my LAN server (Raspberry Pi) via another EC2 instance (OpenVPN) but I can't make it work. The OMD server can ping the RPi but it can't connect ...
0
votes
1answer
48 views

Failover server for EC2

I have one Amazon EC2 instance of Windows Server which is running application with SQL server. Our users from On-premise use RDP to login into this server using Elastic IP and do their work. I want to ...
1
vote
4answers
2k views

Why can't I SSH into a new EC2 instance I created from an AMI I generated?

I followed the procedures for Creating an Amazon EBS-Backed Linux AMI with the exception that I did not shut down the original instance, just let AWS reboot it. When I launch & start a new ...
23
votes
5answers
22k views

Can't connect to EC2 instance in VPC (Amazon AWS)

I've taken the following steps: Created a VPC (with a single public subnet) Added an EC2 instance to the VPC Allocated an elastic IP Associated the elastic IP with the instance Created a security ...
2
votes
4answers
2k views

Unable to ssh to a vagrant started ec2 ubuntu instance

After I ran vagrant up --provider=aws, I could see an ec2 instance being created and became up and running. However it will invariably stuck at this point ==> default: Waiting for SSH to become ...
0
votes
2answers
68 views

How to find online support for Amazon Linux AMI

I am a beginner to Linux, but am currently deciding on a distro for my AWS EC2 web server. My question is how to find online support to Amazon Linux AMI should I decide to use it? I know that it is ...
0
votes
1answer
2k 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 ...
2
votes
1answer
25 views

mdadm, raid1: write to multiple devs but read (mostly) from one?

Is it possible to prioritize which devices are for writes/reads in mdadm RAID1 setup? I'd like to write to both devices for fault tolerance (AWS EBS and local storage SSD), but read mostly from local ...
2
votes
2answers
4k views

Ubuntu 12.04 LTS - apt-get update can't find sources

Update: Running sudo rm /var/lib/apt/lists/partial/* temporarily allows sudo apt-get update to work. Original: I've seen answers to similar questions like this one, but the answers have been 'your ...
1
vote
1answer
1k views

Issue with aborted MySQL connections (error code: 4)

Some of the connections between my application server (Ubuntu, Apache, PHP) and my DB server (Ubuntu, MySQL) are failing with error code 4. According to the documentation error code 4 is: OS error ...
1
vote
1answer
73 views

How to reverse-lookup an IP address back to a service?

I work for an organization that has tens of thousands of services deployed to EC2. One of these services is making requests to my server. I have its IP address, but I have no idea who it belongs to. ...
0
votes
1answer
35 views

Possible to announce IPs through AWS?

I'd like to have additional IPs with my EC2 instances so I'd like to lease IPs from a 3rd party since Elastic IPs seem to be far more expensive. This would require me to announce the IPs. Is it ...
0
votes
0answers
21 views

IPsec with EC2 client and Elastic IP, but nat_traversal=no

After researching this quite a bit, I feel I may be asking the impossible here, but I thought I'd give it a shot. I'm trying to configure an Openswan IPsec client on an EC2 server (inside VPC, if it ...
0
votes
0answers
23 views

Elastic IP intercepting DNS request

I have a machine on EC2 which has an elastic IP assigned to it. I ran the following command on it to listen to udp port 53 nc -u -l 53 I then ran from a local machine (not on ec2): nslookup blah....
0
votes
1answer
22 views

Root Partition not of the size of EBS

I created one OEL 6.6 Ec2 on AWS in one of the Region. And assigned Root Partition 25GB (When first seen it was hinting 15G) And other EBS for other purpose When I did lsblk on it I found that ...
-1
votes
0answers
27 views

Amazon ec2 micro very high latency

I just set up an instance(nothing extra installed,no services running) on linux ami on a t1 micro. From india to singapore , the latency is 560+ ms. A few months back it used to be much less (<...
0
votes
1answer
1k views

Elastic beanstalk not support on custom AMI

I have launched a default Amazon ElasticBeanstalk image(php) in EC2 .I can able to deployed application on Apache.I am trying to use a custom AMI in AWS Beanstalk and does not get deployed on the ...
1
vote
2answers
43 views

AWS EC2 Instance Not Reachable anymore

My previously working ec2 instance is suddenly not accessible through SSH or HTTP. This is what I have tried so far: Rebooting Instance Shutting down and starting up My instance system logs are ...
0
votes
0answers
13 views

Use EC2 instance as proxy to client's VPN

I have a client who has given me access to their database over a VPN. I need my web application to also connect to the same database. My current approach is: Create a new EC2 micro instance (...
0
votes
1answer
55 views

Amazon route 53 + cloudfront + s3 -> with angularjs2 app in ec2

I am really confused about the setup I need for my angularjs2 app. It's simply a SPA application with html5 mode urls and all I want is: requests to www.mydomain.com/blabla... will be redirected ...
0
votes
1answer
57 views

OpenVPN on an AWS instance breaks connectivity

Summary: I want to set up an OpenVPN server on an EC2 instance (Ubuntu 16.04). It fails to configure its interfaces after a reboot. Details: the image installs fine, reboots fine apt update ; apt ...
-1
votes
0answers
29 views

Access AMI using public DNS

I am trying to run RStudio on EC2. For this I obtained an AMI ami-c78875a7 from community AMIs. In EC2 console, I can see that my AMI is running, but I still cannot access it using public DNS. How ...
6
votes
3answers
4k views

Assign Public IP (not Elastic IP) after instance launched

When I launch instance in AWS console I can set "Auto-assign Public IP" to true and newly created instance will be assigned with public IP address from pool. Now assume I have launched instance with ...
0
votes
0answers
7 views

cloud-init fails to reboot server

I am launching CentOS 7 EC2 instances in AWS and have the following cloud-init config: manage_etc_hosts: true package_upgrade: true final_message: "The system is ready after $UPTIME seconds." ...
1
vote
0answers
9 views

Setup email for specific domain using EC2 and Route53 [closed]

I've set up postfix running on an EC2 instance with myhostname and mydomain changed appropriately. I've also made sure that my A and MX record are pointing to the EC2 instance. However, when I send ...
1
vote
1answer
63 views

Keepalive setting for Gunicorn behind ELB without Nginx

Our app's REST API is served by Gunicorn (not behind Nginx) running on AWS EC2 instances with a typical auto-scaling/load balancing setup. The load balancer's idle timeout is 60 seconds, and Gunicorn'...
1
vote
0answers
35 views

I'm struggling to install darkstat on an Amazon EC2 server running Amazon Linux. Any tips?

Hello and thanks in advance for reading through this question. Disclaimer: I'm still quite a newbie when it comes to managing a server. I'm running an Amazon EC2 server (which is running Amazon Linux) ...
9
votes
4answers
4k views

Use IAM to Allow User to Edit AWS / EC2 Security Groups?

I am trying to grant an IAM group the ability to edit our EC2 Security Groups, but I have been unable to get this working without granting access to everything in EC2. I have tried several versions ...
4
votes
4answers
3k views

root locked out of EC2

I was in the process of disabling root logins on an AWS EC2 instance. Right after setting PermitRootLogin no and restarting sshd, I closed the terminal on accident -- before setting up users with sudo ...
2
votes
1answer
33 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 ...
0
votes
2answers
56 views

How do I cancel previous PPK file of amazon ec2?

I am in a big problem. actually I have given server details to third party extension support, in which I have provided them SFTP host xx.xx.xx.xx and username as ubuntu and PPK file. Now I want to ...
0
votes
0answers
39 views

Boto3 error on authorize_security_group_egress

When I try to update egress rule using boto3. I get the following error: client.authorize_security_group_egress( GroupId=group_id,CidrIp="0.0.0.0/0", IpProtocol='tcp', FromPort=from_port, ...