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
0answers
11 views

I lost ssh connection to my instance CSR 1000v AWS

I erased the configuration of my CSR 1000v bu using the CLI command wr erase and there reload. After that, I lost the SSH connection. I was not able to connect to the instance even though it has a ...
4
votes
2answers
27 views

automatically mount ssd on ec2 aws ubuntu 16.04

I am using an Ubuntu 16.04 EC2 from AWS on c5d.2xlarge HW. It comes with a 200 GB SSD called /dev/nvme1n1. I am able to mount this drive using: $ sudo mkfs.ext4 -E nodiscard /dev/nvme1n1 $ sudo ...
1
vote
1answer
22 views

unable to connect web service running on ec2 using public IP:80

I have this EC2 instance with private IP 172.31.11.204 and public IP 34.205.X.X My web service is running on private IP 172.31.11.204 and on port 31336. Inside EC2, I am able to access the service ...
-6
votes
0answers
24 views

how to use SSL on DNS type A record [on hold]

I have domain and subdomain http://example.com (not secure) and http://reception.example.com example.com point to NS records with own shared hosting and reption.example.com point to AWS ec2 public ...
0
votes
0answers
20 views

How to create interfaces for CSR 1000v for GRE tunnels?

Well, my idea is to connect to 4 CSR 1000v routers in different VPC (without VPC peering). I've basically finished with everything with the pre-configuration creating VPCs, subnets IGW, modifying ...
0
votes
1answer
21 views

Active internet connections returned by netstat -an is blank inside docker container

I am new to the concept of dockers and containers. So sorry if I frame the question in a wrong way. The issue is - An aws EC2 instance which is running docker is failing load balancer health checks. ...
0
votes
0answers
21 views

Error URL routing in AWS Route53 to EC2 after email service configuration

I configured the DNS based URL routing to my AWS EC2 instance successfully using Route53 at first and got the expected response. Later on I went on to add multiple Record Sets in order to configure ...
1
vote
0answers
24 views

Elastic Beanstalk environment and security group config for ELB health checker?

I have an Elastic Beanstalk environment that I can't get Health Checks to work on. Here's my Elastic Beanstalk's Load Balancer configuration: My healthcheck URL is /status/ My EC2 security group (...
0
votes
0answers
14 views

httpd hogging all memory until server crash

The server in question is used for processing data into reports, it has three cron jobs which execute every minute to check the process queue and if anything is found they'll keep running until the ...
2
votes
1answer
61 views

How to do routing between the instances in AWS using Route Table?

I have built the following model below. There are 4 instances which have CSR 1000v router deployed in 4 created subnets (green CIDR) that have 28 as a mask. I have created other subnets in order to ...
2
votes
1answer
46 views

Why may AWS t3.micro in Singapore respond slower than t2.nano in N. Virginia from Bangladesh?

I have a t2.nano instance running in North-Virginia availability zone (us-east-1) for almost 1 year. In hope of reducing latency, I just have deployed the created AMI of that instance to a t3.micro ...
1
vote
0answers
24 views

Why is my ec2 instance sometimes not terminating when I use 'shutdown now'?

I am running a user-data script on startup of an ec2 machine which shuts the machine down after checking the exit status of the last executed command. I confirmed that the last executed command ran ...
1
vote
1answer
28 views

Can't mount volume to ec2 instance

Apologies in advance for any incorrect/dumb phrasing; I'm extremely new to all this. I lost the private key to an EC2 instance I was previously running and am trying to follow the instructions listed ...
1
vote
1answer
27 views

Redis reports read-only filesystem, but it isn't

I get this in my Redis logs: 1182:M 30 Nov 14:27:00.028 * 1 changes in 900 seconds. Saving... 1182:M 30 Nov 14:27:00.029 * Background saving started by pid 1920 1920:C 30 Nov 14:27:00.029 # Failed ...
-2
votes
0answers
24 views

how to connect to dynamic IP VPN by requesting current IP from second server

I'm looking to obscure my VPN server address through authentication with a second server. The setup would be the following: A VPN server with a dynamic IP address An Amazon EC2 instance with Amazon ...
0
votes
0answers
13 views

How to trigger a reconnect for Jenkins EC2-Plugin?

Attempting to resolve an issue with an upstream AMI having a low max-open ulimit. I'm able to fill in the limits files, and if I manually disconnect/reconnect the slave, the new limit applies. I can ...
0
votes
0answers
22 views

AWS VM refuses to allow SFTP even though it is configured correctly

I have a blocking issue where a new AWS instance refuses to allow a user to SFTP a file there. Even stranger (and this I've never seen in 30 years) is that if I use the root user to change the ...
1
vote
1answer
64 views

AWS Autoscaling Mixed Instance Types vs. EC2 Fleet Autoscaling

With the release of mixed instance types in AWS AutoScaling, are there still advantages to using EC2 Fleet? Let's also not consider the differences in Reserved Instances and Weighting since Jeff Barr'...
0
votes
1answer
32 views

Hide EC2 Instance Behind Load Balancer

In AWS, I have an EC2 instance which currently allows incoming traffic on port 80. I am hosting an API on this instance and so currently I can hit the API endpoints using Postman at the public IP of ...
-1
votes
0answers
15 views

aws optimized linux get full of disk space

I have a spring boot application that running inside docker on aws ecs optimized Linux. My instance has a 100GB EBS volume attached to it. When I run "docker info" in the instance I get that the "...
3
votes
1answer
28 views

Connect from ec2 instance by alb to app to the same instance

My scenario: I deploy a application in AWS on e2 instance on some port: I create a network loadbalancer (application use a tcp protocol) with target group. Also this instance is in autoscalling group ...
2
votes
2answers
311 views

After changing permissions to home/ec2-user of the main volume I can no longer SSH in even after changing permissions

AS the title mentions. I was dumb enough to change the permissions of home/ec2-user recursively to 777 after which I could not log in. I then detached the volume and then attached it to another ...
1
vote
1answer
29 views

Mounting an old amzon volume to a new instance because I got locked out

I got locked out of my amazon instance. I read that I can create a new instance and attach that volume to the new instance. I attached the old volume to the new instance and the management console ...
0
votes
0answers
18 views

Ping influencing connection requests per second to NodeJS websocket server

I am running a very simple NodeJS websocket server (code available below). When running this on the local machine and connecting 1.200 clients to it (from the local machine), it processes all requests ...
0
votes
0answers
27 views

Amazon Linux ODBC driver not working

I've installed the ODBC driver and the sqlsrv regular and PDO PHP extension versions on my Amazon Linux machine. When I execute the following command, I get a confirmation that the driver is installed....
8
votes
3answers
1k views

Should a detached EBS volume keep charging monthly?

First of all, I'm not very used to AWS nor DevOps/admin stuff, but want to learn. So I set up an EC2 instance and attached an EBS volume (15 Gb) some months ago, for testing something during a few ...
2
votes
1answer
37 views

AWS Amazon AMI - Restrict SFTP/SSH access

I have an AWS Amazon Linux EC2 instance running with sftp/ftp server (vsftp). For security purposes I want to protect the system with the best practise solution for AWS instances. My goal is to ...
0
votes
0answers
34 views

Why are primary network interfaces on forced to inherit all the security groups of their EC2 instances?

I have an instance with three network interfaces: External (primary), internal, and management. Each of these interfaces belongs to its own security group. I'd like the instance itself to belong to ...
0
votes
2answers
45 views

AWS ec2 instance is not responding on Public IP

I have a simple index.html file running on nginx webserver, port 80 on aws ubuntu instance. I'm able to access the server through tunnel but, when i'm trying to connect using Public IP, it shows ...
0
votes
1answer
47 views

What are the steps to convert an EBS boot volume from MBR to GPT without data loss? (Using Ubuntu)

I would like to extend one of my Ubuntu servers main/boot drive beyond 2TB. I know that I need to convert the drive to use GPT, and I'm confident that I can extend the size as needed once I'm able to ...
0
votes
0answers
17 views

Reducing EC2 Boot Disk failed

I have an EC2 instance with a 500GB disk, which is way too much, as it only really needs 2GB. I followed this guide for reducing the boot disk size, creating a 10 GB volume. When I try to boot the ...
1
vote
1answer
41 views

Issues making a connection secure using AWS EC2

We are hosting a website using the EC2 service on Amazon Web Services. The website is currently up and running but the issue is we are trying to make the connection secure by applying a certificate ...
0
votes
2answers
66 views

password unavailability on AWS

I have one windows instance. whenever I try to get the password of that instance. It shows me the error The instance is already running from last 24 hrs. Is there any other way to retrieve the ...
0
votes
0answers
12 views

Forward requests from example.com:8000 (old REST API) to api.example.com (new REST API) on AWS

So I have this problem and I am a bit confused on where to start. I have a Django REST API currently running on a VPS (with apache) and start with djangos runserver command (I know, I know, not the ...
-1
votes
1answer
53 views

Can't able to open custom port in centos 7 launch AWS

I have looked to this issue and notice when he ran netstat -ltpn he do have the 8080 port entry but in my case the desire port 8069 is not entered in this list. Here was my step till now sudo yum ...
2
votes
0answers
43 views

How do i check if an instance is in the terminating state? [duplicate]

This returns InstanceStatuses: aws ec2 describe-instance-status --include-all-instances --instance-ids i-123123123 Which looks like: { "InstanceStatuses": [ { "...
1
vote
1answer
30 views

Can I use the metadata API to check if an instance is being terminated?

Using Windows server 2016 instances. I want the instance to run a local command before it terminates. I can have a script run when windows is shutting down. I would like the script to check if the ...
2
votes
1answer
26 views

Does the size or type of EC2 instance effect the autoscaling/provisioning/termination time?

Are any of the EC2 provisioning/termination times effected by the size or type of instance. For example, if I provision an m4.large and an m4.xlarge, will the m4.large be provisioned faster? Or if I ...
0
votes
1answer
46 views

AWS AMI from Snapshot - Unable to Create Instance of Same Type

I've scoured Google and the AWS developer forums pretty thoroughly (I think) and can't seem to find an answer. I'm snapshotting EBS volumes with boto3 daily for DR purposes. Some of the instances ...
5
votes
3answers
410 views

AWS Security Group - how to allow Public IP from another Security Group

I have two instances in a VPC distinct security groups, each with their own public IP. I would like instance one to be able to connect to instance two on it's Public IP. I discovered that granting ...
0
votes
1answer
51 views

Laravel Forge: Unable to create AWS EC2 instance in London Region

When I try to create a server on Laravel Forge for AWS in the London region I get the following error message: Whoops! There were some problems with your input. The server provider was unable ...
0
votes
0answers
26 views

access apache cgi-bin from remote host

I created a Virtual Host (qgis.demo) listening on port 80 on my server virtual machine (an amazon ec2 instance). It serves a CGI-BIN app (qgis_mapserv.fcgi). I modified my /etc/hosts to include 127.0....
0
votes
2answers
72 views

AWS: reduce nat gateway costs for a small system

I am setting up infrastructure for a startup which pretty much will not have a lot of traffic, but should be able to scale when needed. We are favouring a setup with a LB, that distributes traffic ...
1
vote
1answer
35 views

EC2: Cannot git clone at launch

I am trying to git clone a private repository from GitHub on EC2 instance at launch. What I have in my script(user data) is the following. git clone -b branchname https://github.com/orgname/...
2
votes
1answer
69 views

Identify the top processes when the overall system has large CPU utilization in Ubuntu server

I have a Ubuntu server running in EC2. Occasionally, I get a large CPU usage 99+% utilization as measured in EC2 monitoring dashboard, even though most times it is less than 10%. Since traffic to my ...
9
votes
4answers
1k views

SSH between EC2 instances not permitted

I am setting up a few EC2 instances in a shared AWS account and want to give them access to each other. At the same time I want to prohibit access from other instances in the account. I created a ...
8
votes
1answer
302 views

Can't SSH into AWS CloudFormation Stack Instance

I have a scalable load balancer set up right now that was mostly followed from this template: https://github.com/satterly/AWSCloudFormation-samples/blob/master/LAMP_Multi_AZ.template After adjusting ...
1
vote
1answer
69 views

AWS EC2 CentOS 7 with LibreSwan IPsec Tunnel UP (Established), No Traffic flow, cannot ping Peer encryption Domain Nodes

I have LibreSwan Setup on AWS EC2 CentOS7 instance, IPsec tunnel is established with the peer (Cisco ASA). The Tunnel is up, but I no traffic. I cannot ping the nodes at the side of the peer. Here is ...
2
votes
1answer
40 views

Ec2 Cronjobs - High CPU usage

I have an EC2 Instance (micro) running a cakephp API. This instance serves quality validation before deploying into production. On this instance, we have 5 cronjobs that run once each minute. Those ...
0
votes
1answer
42 views

Cannot install python-libs package on AWS

I have been using certbot to renew my ssl certificates. I've run in to an issue recently where execution of this script fails, even with the latest version. I am given the following error: ---> ...