Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [amazon-ec2]

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

0
votes
1answer
22 views

how to ssh between to ec2 instance with ssh keys

I have two Ec2 Instance. Serve 1, OS: Centos - 7.5 Serve 2, OS: Centos - 7.5 Default username: centos Both are configured for passwordless login, so I have the ssh key with me. I am able to ssh ...
0
votes
0answers
15 views

cannot access EC2 instance after restart

I have stopped my running EC2 instance (with running wildfly and apache) and changed its type from t2.micro to t2.medium. It had an elastic IP associated and still have after restart which at first ...
2
votes
1answer
33 views

An Issue with an AWS EC2 instance when connecting it to WebSocket

As I tried to run the chat app from localhost connected to MySQL database which had been coded with PHP via WebSocket it was successful. Also when I tried to run from the PuTTY terminal logged into ...
4
votes
2answers
361 views

LibSSH authentication bypass

With the recent security announcement by libssh (CVE-2018-10933) I wonder how to find out if any of my running services use the vulnerable library? I will eventually yum upgrade the system but for now ...
2
votes
1answer
54 views

EC2 instance stuck at unreachable login after assigning Elastic IP and rebooting

When I check the logs of my EC2 instance after assigning an elastic IP (e.g., new elastic ip is = ip-111-111-111-111) and rebooting, I get the following at the end of my EC2 logs (Found by going to "...
2
votes
2answers
22 views

Created AWS EC2 instance from snapshot AMI, eth0 is missing after startup

I recently created a new EC2 from a snapshot of our Production EC2. The machine started up fine, and I can ssh in, however - cannot access via anything else. No WWW, nothing. Upon further inspection ...
0
votes
3answers
42 views

Installing MySQL on Amazon EC2 Instance, backup?

To install MySQL on Amazon EC2 Instance (for example: t3.medium), is there anything I need to be aware of when doing snapshot backup of EC2 Instance? What is the right procedure to install MySQL on ...
2
votes
2answers
42 views

Do I need an SSL certificate on my EC2 server even when I have a load balancer?

Starting to setup a Load Balanser in AWS, I ran into some additional questions. Basically I have a web site/app deployed in an EC2 instance. I'd like to make it secure by using an AWS generated cert ...
0
votes
1answer
10 views

Ssh key management in AWS like gcp

Google Cloud really Nails the SSH Key Management thing out of the box and AWS leaves it all up to you. In gcp your gcp login credentials are also used for SSH access. gcp automatically creates SSH ...
1
vote
1answer
141 views

Does AWS charge for CPU Usage?

I am considering getting t3.medium Type EC2 run Web Server (Apache, PHP, MySQL) and it also make a lot of use of data processing (PHP script running in the background making a lot of use between MySQL ...
3
votes
1answer
44 views

how to get public ip of instance using cloud formation

I want to output public ip of my instance in cloud formation.This is the relevant part of my yaml file.What attribute i have to specify to get public ip. (Here myec2 is where i described my instance) ...
1
vote
0answers
15 views

AWS SSM deleting its own files as part of its execution. Any way to safely do it?

Is there a safe way to delete all of an AWS SSM runRemoteScript directory as part of execution? Details below. We've got a very robust AWS SSM setup working involving a python app that polls AWS, ...
0
votes
0answers
7 views

Connection timeout when connecting to ASP.NET MVC app on AWS

I followed this tutorial and had success getting the demo project to run, but after using Amazon's deployment extension for Visual Studio to deploy my real application just as I had done for the ...
1
vote
2answers
32 views

Alternatives for enabling SSL on EC2

I have an existing AWS EC2 instance which contains both an application server and a web server (apache). My external DNS directs traffic from www.x.com, api.x.com, oa.x.com to the instance via it's ...
1
vote
3answers
23 views

Using S3 as a alternative to EFS for backup purpose

For centralised backup purpose of specific data from my instances, i was using EBS Volume mounted to that instances. Now we are planning to migrate to another region, but EFS service is not available ...
0
votes
0answers
14 views

Cyberoam Installation - Cannot Reach server Error

I have downloaded the Cyberoam tar file and have extracted it using tar command in the location /home/ec2-user which created a directory "CyberoamLinuxClient"inside which there were two files "...
2
votes
1answer
40 views

NAT gateway for ec2 instances

I have a public subnet with ec2 instnaces. The route table has 0.0.0.0/0 IGW (Internet Gateway) as default. I tested adding a public IP address to my instance (104.27.142.41/32 as reported by curl ...
0
votes
0answers
32 views

Do Amazon EC2 instances use hardware from Elemental Technologies?

My company received a security bulletin from one of our clients asking whether our servers were impacted by the reported spy chips installed on Elemental Technologies servers. Amazon purchased ...
0
votes
1answer
39 views

ec2 out of memory from apache random spike

Over the past year, we had consistently random spikes which caused apache to use all the memory and swap out. Server Uptime I have an example of the latest crash (5:30AM - 12:00PM UTC). OOM Kernel ...
0
votes
2answers
58 views

AWS Instance accept connection from VPN in same VPC [closed]

I did setup an OpenVPN server, which works fine and the IP of the server shows instead of my machine's IP. I am using this VPN to connect to EC2 instance, and restricting access to only instances ...
1
vote
1answer
40 views

Estimating concurrency limits for an AWS architecture running WordPress

I'm trying to estimate a number of concurrent users a WordPress AWS setup can withstand (that needs to be highly available and support huge loads). I am asked for a loose range that I would say we can ...
0
votes
0answers
10 views

Apache ErrorLog - files are empty

I've set up a new CentOS server recently running Apache 2.4. I've installed PHP 7.2 but I'm unable to get errors to log to the locations specified in my Apache config file: <VirtualHost *:80> ...
2
votes
1answer
26 views

Launch a batch script with path modification in EC2

I am quite new to AWS but I think I understood how to deploy an EC2 instance, what I am trying to do is install apache tomcat and all that is needed for this on a windows server 2016 using the user ...
0
votes
2answers
64 views

Add sub domain in AWS Route 53

My domain is example.com I want to add sub domain like subdomain.example.com My domain register in godaddy. I created Hosted Zone in aws route 53 and changed dns in godaddy. example.com working as i ...
0
votes
1answer
16 views

AWS ec2 can't connect to flyvpn

My machine is CentOS 7, location is Singapore. I want to build a connection with flyvpn to crawl different LINE stickers on LINE store. Now I can connect to flyvpn by setting cron, but the IP of EC2 ...
5
votes
1answer
87 views

backup/restore ec2 instance before o.s. update

I have an EC2 instance with an EBS backed root volume. The OS hasn't been updated in some time and I'd like to remedy that, but I need a rollback plan in case the updates cause issues. I think I ...
0
votes
2answers
29 views

AWS queries regarding subnetting and routing

I have some queries regarding AWS setup please clarify. I have created a VPC with CIDR 172.16.0.0/16 which is a private range of IP's. In my route table, I routed all the traffic from this range. ...
0
votes
0answers
10 views

VBoxManage.exe: error: Context: “enum RTEXITCODE __cdecl handleImportAppliance(s truct HandlerArg *)” at line 886 of file VBoxManageAppliance.cpp

I am trying to setup amazon ec2 linux instance in vagrant. Based on suggestion here Vagrant box most similar to Amazon EC2 instances suggestion of eneset vagrant init mvbcoding/awslinux; vagrant up -...
1
vote
1answer
39 views

mkfs fails on ec2 t3.large instances

I would like to move to t3 instances from t2 instances on ec2 but my chef deployment script fails on t3 instances but works on t2 instances running under either ubuntu 16.04 or 18.04. I can create ...
0
votes
0answers
15 views

Assigning unique tags to spot fleet instances

When creating a spot fleet, is there an easy way to have a list of identifiers that instances will pull from when they boot? IE: I have tags ['web1','web2','web3','app1','app2'] and I have a spot ...
1
vote
1answer
24 views

Can not start instance - No root volume attached - After migrating to encrypted volume

I am migrating a Windows instance's unencrypted disk to an encrypted. I have created a snapshot of its volume, made an encrypted copy of the snapshot and created a volume from the encrypted snapshot. ...
1
vote
1answer
40 views

Private s3 access from ec2 user-data script

I'm attempting to write an ec2 user-data script that will pull a file down from a private s3 bucket. The ec2 instances are located in multiple regions, which I believe eliminates the possibility of ...
1
vote
1answer
16 views

EC2 Instance connectivity with diff region

I have a set of instances in Oregon region and my jenkin server in California. How do i connect instances with jenikins server with their private IPs. I am not running Instances all time. I can easily ...
1
vote
1answer
53 views

additional users on EC2 windows

I have spun up an EC2 windows instance in AWS. I would like to know how to enable login for the users with ssh key pairs in windows? Is it possible or should I just use windows login (username / ...
1
vote
1answer
30 views

How could I connect MySQL Server (on a EC2 ) from another EC2?

I create two instances on EC2 (CentOS 7). I am trying to deploy MySQL InnoDB Cluster. When I add instance (slave) I found master cannot be connected. I can use GUI tool on my local to connect the ...
0
votes
1answer
33 views

ec2 ssh Permission denied (publickey)

Two days ago, I tried to connect to the server with ssh as usual. But I got a connection refused error. I've tried a lot of solutions. As in this youtube video (https://www.youtube.com/watch?v=...
-1
votes
0answers
45 views

How to migrate DigitalOcean droplets to AWS

I want to migrate all droplets(Ubuntu, CentOS) which are in Digital Ocean to Amazon Web Services where the data of the droplet(applications which I am running on those droplets) should also migrate to ...
-1
votes
0answers
25 views

AWS Mysql to external server data transfer very slow

I am trying to set up a data transfer between my two servers.I notice the transfer of data between both these server is very slow. I use python 3.6 as my scripting language to connect and transfer ...
0
votes
0answers
21 views

EC2 Instance Freezes

I am experiencing sudden freezes in one particular instance. Here some details of the instance: Type: t2.micro Region/av. zone: us-west-2b OS: amzn-ami-hvm-2018.03.0.20180811-x86_64-gp2 (ami-a0cfeed8) ...
1
vote
1answer
60 views

How to disable Amazon EC2 instance yum automatic nightly check-update?

A server running on my EC2 instance (Amazon Linux AMI) falls over every night. I watched processes and this happens, every time, minutes after this command runs: /usr/bin/python2.7 /usr/bin/yum --...
1
vote
1answer
49 views

How to resolve AWS ELB redirection issue

We have deployed an application (Tomcat based) to an AWS EC2 instance. I am able to access the site directly and I can access it via the internal ELB. However I can't access it via the external ELB ...
1
vote
0answers
115 views

Adding second network interface to Ubuntu 18.04 on AWS EC2

The provided 18.04 AMI comes with one interface, and I am adding a second one with its own IP (for stuntman-server). However the instance is only responding to one elastic IP or the other, not both (...
1
vote
2answers
65 views

EC2 capped HTTPS upload

I have an application on 2 EC2 instances sitting behind an ELB. The ELB does HTTPS termination and then speaks HTTP to the instances. When uploading via HTTPS the transfer seems to be capped at ~ 10 ...
1
vote
1answer
29 views

Changed AWS EC2 firewall rule and locked out of ssh

I have an AWS EC2 instance using SLES15. I manually edited /etc/sysconfig/SuSEfirewall2 to open some ports. I messed up the FW_SERVICES_EXT_TCP because I thought I am adding on top of what's already ...
2
votes
2answers
64 views

How can I access Production DB securely without static ip

I am running a small scale app on AWS EC2 and it has PostgreSQL installed on it. I want to access this production DB remotely but also want to keep it secure and I'm not sure if what I am doing is ...
0
votes
1answer
53 views

Amazon EKS: how to configure S3 access for worker nodes?

How can I configure an EKS cluster to automatically allow S3 access from worker nodes? I've set up an EKS cluster following the Getting Started guide and have run the example Guest Book app. Now I ...
0
votes
1answer
24 views

Why does WordPress on 3 load balanced EC2 servers run out of memory/fpm child processes and crash?

The problem: 30-40 minutes after pointing the DNS from our old server towards our new server, all available memory gets used up and our (3) load balanced EC2 instances crash. To make matters worse, ...
0
votes
1answer
65 views

Using AWS for HIPAA compliance, how to avoid polling

I was looking at this article here: https://aws.amazon.com/health/healthcare-compliance/hipaa/ Here is the important image: My question is - in the article it says that EC2 will poll SQS to see if ...
0
votes
0answers
21 views

Softether Server built on AWS EC2 (running windows server 2016), concurrent sessions never exceed 50?

I have set up a softether server on Amazon EC2 running windows server 2016. For sake of zeor user configuration, I am using the same username/password hard coded in android openVPN client, so all ...
1
vote
0answers
28 views

Trying to run php-fpm 5.6 alongside php7.2 for different Apache virtual hosts on EC2 amazon linux , what am I missing?

I'm working on amazon linux on an EC2 instance. I installed php72 using yum, apache worked fine. I have installed php5.6 at /opt/php5.6 configured it as fpm and done the make install whcih all went ...