Questions tagged [amazon-ec2]

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

Filter by
Sorted by
Tagged with
-1
votes
2answers
41 views

EC2 instance doesn't show up in AWS Systems Manager

I am trying to create an EC2 instance (Amazon Linux, so I shouldn't have to configure the SSM agent as it should be autoconfigured) in a private subnet, and want to be able to SSH into it. According ...
0
votes
0answers
18 views

How to migrate to Fargate from EC2 in ECS cluster?

I am planning to migrate to Fargate for autoscaling purposes. I already have task definitions for both my staging and production environments which are currently live. There's two ways I thought I can ...
0
votes
0answers
18 views

How can I make network communicable between different accounts on AWS?

For these 2 AWS accounts, have made vpc and security groups for them. account 1 Account id: 1111111 EC2 web server vpc: name:a-web-vpc id:vpc-123 sg: id:a-web-sg account 2 Account id: 2222222 EC2 ...
0
votes
0answers
34 views

Port 22 Connection refused on EC2 instance after upgrade to Ubuntu 18.04

According to this question, it's not a good idea to upgrade an EC2 instance. I'm cool with that. However, I would still like to know the problem in case this happens on a physical device. I can no ...
-1
votes
0answers
18 views

Unable to access custom port from application load balancer, what could be the reason?

I've connected an EC2 instance with my domain using an application load balancer. I've enabled relevant port forwarding for ports HTTP and HTTPS (80 and 443). I'm now able to access my instance from ...
0
votes
0answers
11 views

TTFB slow on EC2 instance until reboot. What is the cause and how can I monitor this with notifications?

I have a T2 micro on AWS EC2 running Ubuntu Linux. The response times have fine been for a long time. Tested some pages today and page load time was 20 seconds or longer. I checked the "st&...
0
votes
0answers
21 views

Postfix still using port 25 after specifying port 587 to be used

I run Ubuntu 18.04 on an AWS/EC2 instance. I have installed mailutils and postfix in hopes of making a send-only mail server. I have read that several providers block port 25 as a means of preventing ...
0
votes
1answer
24 views

mariadb oom-killer on CentOS8 in EC2 t2.micro instance

I seem to be having memory problems in my t2.micro instance (1GB) running nginx, mariadb, php and WordPress. I can see that mariadb.service is being killed regularly (I have used grep -e kill /var/log/...
0
votes
0answers
15 views

How Ubuntu 16.04 LTS end of support will affect the Wordpress Ubuntu AMI [closed]

I have noticed that Canonical, the company behind Ubuntu, announced that the Ubuntu 16.04 LTS (Long Term Support) period will end on Friday, April 30, 2021. In my AWS account, I'm using a WordPress ...
-1
votes
0answers
35 views

How to create an ec2 user when the volume is mounted in another instance

I have mounted a root volume of an instance (let's say server 1) in another instance(server 2). Now I want to create a new user in server 1 without login into it. Is there a way to do it from server 2....
-2
votes
0answers
19 views

Why EC2 and DigitalOcean's new server IPs are blocked in Spamhaus, Microsoft etc?

I need to verify some email addresses. So I was trying to do this job with Golang's mailck and checkmail packages. The problem is when I try to verify any hotmail/outlook email, my DigitalOcean server ...
0
votes
1answer
50 views

Amazon Linux 2 - EC2 PostgreSQL

I've the following: Amazon Linux 2 Postgres 12 installed a user created I'm using ssh to connect to my instance. The issue is that it doesn't let me to connect to my postgres database. I've created ...
1
vote
0answers
12 views

Unsuccessful flask app deployment on Amazon EC2 instance

I am trying to deploy a flask app on an Amazon EC2 instance. I have configured everything just fine but the website does not load. It remains stuck on the loading icon as follows: Website not loading ...
0
votes
1answer
105 views

Amazon EC2 instance ubuntu upgrade from 16 to 18

We have received this email recently from Amazon AWS: Your account has been identified as having started an instance or continuing to run instances of Ubuntu 16.04 over the last 6 months. Canonical, ...
1
vote
0answers
11 views

Deploying two applications on the same instance with clustering

I am trying to deploy two applications listening on different ports on the same instance (a Next.js application along with a Node.js API server). I will use a reverse proxy to route traffic to them ...
0
votes
0answers
37 views

Mac EC2 instance launch failure - The requested configuration is currently not supported. Please check the documentation for supported configurations

I'm trying to create a Mac EC2 instance by following this AWS User Guide however it fails with the error seen in the screenshot below: What I have tried so far : Using other AWS regions such as ...
1
vote
1answer
46 views

My Linux machine reboot everyday at 0:00 UTC but I never set that. What could cause this happen?

I have an EC2 instance and it auto reboots every day. There is a broadcast message in the terminal before rebooting, like the following: Broadcast message from root@ec2... (Sun 2021-03-28 00:01:50 UTC)...
0
votes
0answers
16 views

Rails application not working on AWS after upgrade to Rails 6.1.3

I recently upgraded my application to Rails 6.1.3. When I attempted to deploy the application to AWS the deployment failed with the error message "Following services are not running: application.&...
0
votes
0answers
11 views

Cannot connect via hostname to EC2 instance

Ok, so was following this tutorial https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-to-ec2-instance.html My EC2 instance is inside account # 1, and I took the IP address and then I ...
0
votes
0answers
27 views

How to debug AWS load balancer failed health check?

I've got an EC2 instance behind a load balancer which is failing the health check. When I look at the target group / targets, the instance says Status: unhealthy, Status details: Health checks failed. ...
0
votes
1answer
40 views

What tool can i use to simulate users visiting my cloud based website? [closed]

I'm looking for a tool where I can specify a request like "2k users visiting website www.example.com with 4 users every 10 sec within 1 hour" I'm learning AWS cloud and want to see how my ...
2
votes
1answer
55 views

How to mount a filesystem that also has remote filesystems mounted

I am trying to create a system for our developers to be able to use libraries that MUST be retained at the client's site. We are not allowed to download these libraries to develop off locally, but ...
0
votes
1answer
36 views

Do I need to separate /var and /tmp from the root partition on AWS EC2?

A result of an audit check on the Amazon Linux AMI gave a number of recommendations on the file structure, for example the need to have the root and /var and /tmp on different partitions. Is this ...
0
votes
0answers
22 views

Chmod 400 not working to change .pem key permissions

I am on a Macbook, and trying to use chmod 400 ".pem key" doesn't seem to be changing the permissions to the key and I keep on getting "Permission denied (publickey)" when trying ...
1
vote
0answers
34 views

AWS not giving advertised ram

I have two t3.micro AWS instances. One is in us-east-1a and the other is in us-east-1b. Each of the machines should have 1GB of ram. On the first box in us-east-1a I see: [root@ip-10-0-0-32 ~]# free -...
0
votes
1answer
39 views

Are community AMI's eligible for EC2 free tier?

AWS states: When you start an Amazon EC2 instance, you must select an Amazon Machine Image (AMI) that is eligible for the AWS Free Tier. Because of licensing restrictions, some AMIs aren't eligible ...
0
votes
0answers
22 views

EC2 Amazon Linux - Tomcat starts on terminal but not on browser

PUBLIC IP: 35.175.126.174:8080 The startup of Tomcat 9 occurs successfully, I've configured security group to accept HTTP requests from anywhere on port 8080, there are no errors on catalina logs, but ...
0
votes
0answers
19 views

Is AWS Lifecycle Manager the recommended way to back up root EBS drives?

In the AWS backup and recovery guide [1] Amazon Data Lifecycle Manager is listed as a tool to automate creation, retention and deletion of snapshots. However, on page 15, the guide also mentions that ...
0
votes
0answers
34 views

Nginx [emerg] open() “/var/log/nginx/domain-error.log” failed (24: Too many open files)

I know this has been asked a number of time, but none of the "answers" have solved our problem. Here is the error I'm getting in Nginx error.log 2021/03/09 07:32:00 [emerg] 1150#1150: open()...
0
votes
1answer
41 views

Automatic ELB forwarding rules based on path

I have an ec2 container serving inference for ML models, which need to be cached in memory to avoid cold starts. We are using an LRU cache and selecting the model based on a query parameter. As the ...
1
vote
2answers
35 views

L2TP Issues AWS EC2

I'm trying to set up l2tp inside an AWS VPC, I'm having problems. I'm on a MAC OS and I keep getting an error "A connection could not be established to the PPP server. Try reconnecting. If the ...
0
votes
1answer
26 views

Connect instances in auto-scaling group to EC2 instance (coordinator node) without using elastic IP?

I have a setup where I do batch computation using spot instances in an auto-scaling group. The batch computation is coordinated by a "coordinator node", which is just an EC2 instance. I use ...
1
vote
1answer
32 views

How to fix infinite bash loop (bashrc + bash_profile) when ssh-ing into an ec2 server?

I mistakenly have source .bash_profile in the bashrc file and vice versa. Now when I tried to ssh into the machine (ec2), it will stuck at loading bash and get connection closed in a second. Is there ...
0
votes
0answers
28 views

Why does curl localhost provide expected output but navigating to ec2 public IP does not using nginx?

I have been stuck trying to get nginx started up on my ec2 instance. All I have done is install nginx and seems to be running as expected within the server. Running curl localhost serves the default ...
0
votes
1answer
57 views

How to choose right AWS EC2 instance for serving MySQL

Recently we have noticed that our application has some errors related to the MySQL load. There are some basic queries on large database (approximately 32 GB) which takes longer time than expected. For ...
0
votes
1answer
19 views

EC2 instance unreacheble after rebooting

I'm making this question because I checked this similar one and I don't know why the owner accepted the first answer, since it did not help him to achieve his goal. I'm not able to add comments too, ...
0
votes
0answers
26 views

Force all successful SSH logins to a single account

Is there a way to force sshd to accept logins on any username but to actually log in to the machine as a specific user? Our team has a number of EC2 instances in AWS, and I can configure them with the ...
1
vote
1answer
49 views

What are some behaviors/patterns that indicate that a host is degrading?

Student here, I'm wondering how we know that hosts are degrading (specifically EC2 instances)? What are some typical behaviors that could indicate the degradation? I looked through the site and ...
1
vote
2answers
642 views

Kubectl error You must be logged in to the server (Unauthorized) when using kubectl

I proceeded with the work referring to the following site (I don't use EKS.I create k8s on ec2 using kops) Getting Started with kOps on AWS When I tried to call kubectl get service I got the message: ...
0
votes
0answers
33 views

Nginx and secondary IP addresses on EC2 instance running Debian Buster

I have an EC2 instance running Nginx on Debian Buster. I added multiple private IPs to the instance (to allow nginx to host multiple websites) using the AWS web console. I then created the script /usr/...
0
votes
1answer
38 views

How to set AWS EC2 security group to allow SSH from all computers connected to 2 different home networks?

I have a Verizon router and a AT&T router at home and multiple computers that are connected to one of the two routers. I just started a free tier AWS EC2 Ubuntu server and would like to set its ...
0
votes
1answer
15 views

Nginx, how to allow IP:PORT requests

What's the proper way to configure Nginx to allow IP:PORT requests like this: //App is deployed on 8086 http://X.X.X.X:8086/?a=xxx&b=yyy&c=zzz ((http requests)) over TCP or UDP //Another app ...
0
votes
1answer
60 views

Best AWS option for occasional video encoding with FFMPEG? [closed]

I have an app which receives a video file and a text from a front-end form, creates a video intro with text, merges this intro with 1 to 2 hour video. Everything is being encoded using ffmpeg, after ...
-1
votes
2answers
51 views

How do I share all resources between two AWS Root accounts?

We have one person that has been in charge of all AWS resources for our company, including EC2, elastic IPs, EBS storage, etc. Now we want a second person to also have access to ALL the resources in ...
0
votes
1answer
39 views

Connecting to Second Elastic IP Address assigned to an ENI on AWS EC2 instance

I have a single ENI connected to a t2.micro EC2 instance. It has an Elastic IP xxx.xxx.xxx.xxx associated with the "primary private IP address". I added a "secondary private IP Address&...
0
votes
1answer
71 views

How to install OpenGL on Amazon Linux 2 AMI t2.small type?

I need to install Grass GIS on my Amazon Linux 2 AMI instance which is of type t2.small During the configuration of Grass GIS it stopped with checking for GL/gl.h... no configure: error: *** Unable ...
0
votes
0answers
16 views

How I can provision per user keys on each EC-2 server that I want to give access to?

In amazon EC-2 I have some machines, as you know Amazon issues a generic key for each machine (or select one that already amazon has created). But I want an easy way for me to provision keys that each ...
0
votes
1answer
22 views

How to find available “2nd hand” AWS EC2 instances in the Reserved Instance Marketplace?

I need an AWS EC2 instance constantly on for 1 month and I am looking at alternatives to the normal on-demand price. There are articles out there describing how to choose a 2nd hand Reserved Instance ...
0
votes
1answer
37 views

AWS auto scaling, “scale in” controls

I'm trying to move off a monolithic big server, that ran many jobs, into a design that uses auto scaling to build out more servers as more jobs are run. The issue I found in testing is that when the ...
0
votes
0answers
34 views

How to create my own EC2 AMI with a custom distro and a custom kernel?

I would like to create my own custom AMI with its own custom kernel running on a HVM instance. At first I thought this is a solved problem as I've seen several solution out there, (packer, aminate), ...

1
2 3 4 5
126