Questions tagged [aws-ec2]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
10 votes
4 answers
7k views

ClamAV detected Kaiji malware on Ubuntu instance

Today clamAV scanned my AWS instances and detect 24 infected files on each. It looks like false positive due to several reasons: All these files are created in October 2022 (why were they detected ...
Rougher's user avatar
  • 203
8 votes
4 answers
6k views

How to install and configure Redis server on Amazon Linux 2023 (AL2023)?

Amazon Linux 2023 is loosely based on Fedora 34, 35 and 36 as per aws: https://docs.aws.amazon.com/linux/al2023/ug/relationship-to-fedora.html However redis package is not available in AL2023, instead ...
VIVEK's user avatar
  • 83
7 votes
2 answers
7k views

In AWS, can an EC2 instance be in more than one VPC at the same time?

I think the answer is no, but I want to make sure that I'm not missing anything. Is it possible for an EC2 instance to have IP addresses in more than one VPC at the same time? I tried creating 2 VPCs, ...
Pablo Fernandez's user avatar
5 votes
1 answer
689 views

AWS server completely shutting down because of the insufficient CPU memory (server-kernel: out-of-memory )

WordPress website(4years old) have been recently migrated from shared server to the AWS server (2cpu, 4GB ram,80 SSD).After migration website was working fine but in the night between 2am and 6am the ...
Rakshith k's user avatar
3 votes
1 answer
590 views

AWS NAT Instance Setup

This question was originally posted to stack overflow, they suggested I repost it here (https://stackoverflow.com/questions/76715004/aws-nat-instance-setup). I am currently learning the AWS cloud and ...
lobis's user avatar
  • 31
2 votes
1 answer
5k views

Redis inside Docker Compose Permission Denied for RDB file Crontab

Hi I have following docker-compose.yaml file. version: "3.9" volumes: local_postgres_data2: {} local_postgres_data_backups2: {} services: postgres: image: postgres ...
Mudassar Hashmi's user avatar
2 votes
1 answer
124 views

W32Time doesn't respect MaxPosPhaseCorrection settings

I'm having a problem with W32Time service on Windows Server 2019 not respecting the default limit on positive time offsets (MaxPosPhaseCorrection/MaxNegPhaseCorrection = 15 days). The server is ...
kirill_l's user avatar
  • 237
2 votes
2 answers
2k views

AWS EC2 /dev/nvme1n1 mounted without partition table

I have an EC2 server on nitro system (c6g.2xl) where I have attached a 2nd volume. This is a web hosting environment and the disk is regularly increased in size. For some reason I accidentally mounted ...
jdog's user avatar
  • 131
2 votes
0 answers
70 views

Unable to connect to AWS EC2 instance public IPv4 using http tcp/80

Referring to an instructional book, I am setting up an EC2 instance on AWS using an IAM role. However, when I try to access the URL using the EC2 instance's public IP address, I am unable to establish ...
Scatt's user avatar
  • 21
1 vote
3 answers
3k views

PHP is stopping a web-based script after 60 seconds

I'm working in a Bitnami installation of Apache2 and PHP (5.6) and we have trouble with a script that's taking longer than 60 seconds to complete. This script in question is failing after 60 seconds, ...
Gabriel I.'s user avatar
1 vote
1 answer
659 views

AWS auto destroy EC2 instances older than X days

We create automatically EC2 instances as ReviewApps. The reviewer are supposed to destroy the ec2 instances but this doens't happen always. So i would like to script (Lambda, Terraform, etc?) that EC2 ...
RogerSik's user avatar
1 vote
0 answers
27 views

Cant login to AWS EC2 instance with IGW/VPC

Used this q's 2nd answer checklist Hello, I am trying to login to an AWS Linux EC2 instance without much success. I am doing this via cloudshell/android phablet. The VPC has an IGW and a seeming ...
ArrowInTree's user avatar
1 vote
1 answer
150 views

How do I create an Elastic Beanstalk example?

I have tried to create and deploy on Elastic Beanstalk. It never works. I have spent over 14 hours trying to get EB to work over the course of 1 month. I have followed online tutorials in addition to ...
BigMistake's user avatar
1 vote
1 answer
60 views

How Do I Use The <VirtualHost> Directive To Host Multiple Sites Using An EC2 Instance, ELB, And CloudFront?

I've been really struggling with this for the past few days, and I'm at a lost. Here's what's going on. I have an EC2 instance (Amazon Linux 2023) behind an ELB and a CloudFront distribution that I ...
wholelottabob's user avatar
1 vote
1 answer
76 views

What steps can I take to troubleshoot why my server is not accessible over HTTPS after enabling SSL with Certbot?

I'm looking for assistance in diagnosing and resolving this issue. What steps can I take to troubleshoot why my server is not accessible over HTTPS after enabling SSL with Certbot? Are there any ...
Sri's user avatar
  • 13
1 vote
1 answer
29 views

Aws workspace can't access website hosted in aws ec2

I have a website hosted in an ec2 instance. It works ok from outside, for example from my home network. However, i can't access this website from my aws workspace. Both ec2 instance and workspace's ...
Trong Lam Phan's user avatar
1 vote
1 answer
81 views

I can log into my AWS/EC2 instance but my developer can't

I created a new EC2 instance, generated a key with PuTTYgen and was able to successfully log in on my machine using Pageant and PuTTY as well as WinSCP. My security group is open to all IPs, but my ...
George Young's user avatar
1 vote
1 answer
296 views

AWS EC2 EBS: btrfs partition and FS automatically resized by just increasing the EBS volume size?

I had to expand the size of an EC2 EBS root volume that uses btrfs (Fedora 38 Server), so I did the following: Stopped the EC2 instance Expanded the EBS volume via the EC2 console Started the EC2 ...
3VYZkz7t's user avatar
  • 111
1 vote
0 answers
151 views

AWS EC2 auto-scaling Windows server: how to set the hostname ("computername")?

I have an elaborate framework for autoscaling UNIX servers to configure their hostname with a script on launch (startup) using an NFS (EFS) where they look up what their hostname should be, then set ...
Gunther Schadow's user avatar
1 vote
0 answers
91 views

AWS Ec2 instance (ubuntu) instance not showing elastic ip address

I have allocated an elastic IP address to an AWS Ec2 (ubuntu) instance. But when i am running the 'ip address show' command, it only displayes the public IPV4 address, not showing the Associated ...
Alakananda S's user avatar
1 vote
0 answers
179 views

AWS EC2 - Difference between adding interface via Bota3 vs adding via web interface

Apologies for dupes, I assume this is not novel, but I can't get the phrasing right to get an answer. I have a lambda python script provided by AWS from this example (python script reproduced below to ...
stupac8908's user avatar
1 vote
0 answers
117 views

AWS EC2 NGINX SSL Issue after activating the SSL

We have this weird issue on our AWS EC2 instance, when we activate the "AWS SSL Certificate" on that specific EC2 instance it will not work and instead, it will just show the default "...
Uno's user avatar
  • 11
1 vote
0 answers
97 views

How to spin up AWS computing resource on demand within 10 seconds delay apart from using Lambda?

Upon user request, my application has to run a CPU heavy application that requires 6 CPU processes. To reduce latency and speed up development, I choose a monolith approach. Therefore, I simply put ...
Raymond Pang's user avatar
1 vote
1 answer
2k views

Copying files to/from EC2 instance using SSM alone (no SSH or S3 bucket)

I'm trying to setup a ready-to-run terraform template for some performance testing. It creates two EC2 instances in the same cluster placement group and preinstalls a bunch of tools. I don't know the ...
eof's user avatar
  • 121
1 vote
0 answers
308 views

Setting up deployment for .net 6 to AWS EC2

(Lowly dev trying to play at devops) I've successfully created an EC2 instance on an Amazon Linux platform. I have a .net 6 API running locally, with the code base sitting in a private GitHub repo. I ...
Randy Hall's user avatar
1 vote
0 answers
591 views

How can i route pods in a EKS cluster to a specific NAT Gateway within the same subnet

Am running an EKS cluster deployed on a node (in public subnet) with two namespaces, one pod running in each of the namespaces. I have created two NAT gateways on the same subnet. I would like to ...
Karthik Balasubramanian's user avatar
1 vote
0 answers
465 views

AWS-CLI EC2 AMI :: Get details about owner via OwnerId

Given the OwnerId field returned from an AWS ami query such as: $ aws ec2 describe-images --image-ids ami-015f906ef3e2123c0 --region ap-southeast-2 --query Images[].OwnerId [ "602401143452&...
spinkus's user avatar
  • 187
0 votes
1 answer
124 views

Is there any way in aws to find if my ec2 instances is fully utlized for type which i am using?

I have may aws ec2 instances running in dev account and most of the instances i see cpu utlization doesn't go most of the time more than 5% . For example even in one of the kubernetes cluster where ...
Naggappan Ramukannan's user avatar
0 votes
2 answers
106 views

95% of root file system is in use but cannot see disk space issue

1st of all, I'm a linux & AWS amateur, so I feel as if I'm searching in the dark here. I seem to be getting issues with my Elastic Beanstalk environment. After a few days I get notifications of ...
thunk's user avatar
  • 101
0 votes
1 answer
40 views

API Error labels all over AWS management console (EC2 Dashboard)

After deploying a VPC using terraform, I get this: What causes this / how can I debug this? the terraform validate always succeeds... Often when I refresh the whole browser window, the issue is gone ...
yen's user avatar
  • 117
0 votes
1 answer
195 views

EC2 instance refuses to connect to ssh, and web server running in it does not handle any requests - how to troubleshoot?

I have two ec2 instances which run different applications on them, which is served through CloudFront. Tonight both became unresponsive at the same time. Any attempts to contact the apps through ...
Edy Bourne's user avatar
0 votes
1 answer
152 views

AWS T3 Linux VM becomes unresponsive when CPU reaches 80%

I am running a t3 small instance on AWS. Whenever its CPU usage reaches 80%, it becomes unresponsive, and we are unable to access it via SSH. After stopping and starting the instance, everything comes ...
hasnain hakim's user avatar
0 votes
1 answer
517 views

Can't connect from AWS EC2 instance to AWS SES endpoint

Disclaimer: my AWS networking skills are basic. I have an EC2 Windows server instance in a private subnet. I connect via a VPN. FOR TESTING I put it in a Security Group that allows all IPV4 TCP ...
Matthew Allen's user avatar
0 votes
1 answer
68 views

MySQL Server Scaleing with AWS issues

MySql server doesn't seem to be scale up correctly when scaling up my AWS instance. Its almost like MySql is cacheing the instance sizes. This happens after a scale down the AWS instance and then when ...
Tom's user avatar
  • 101
0 votes
1 answer
99 views

Can't find Rancher instances in AWS EC2 dashboard

I followed the official AWS quickstart guide from the Rancher website: https://rancher.com/docs/rancher/v2.5/en/quick-start-guide/deployment/amazon-aws-qs/ The tutorial consists in : Downloading a ...
Hamza Ince's user avatar
0 votes
0 answers
26 views

IPv6 ICMP rules for AWS Security Group

I'm in the process of configuring IPv6 ICMP rules in my AWS Security Group, specifically for an EC2 instance. I need to allow ICMP traffic for the PTMUD protocol and other related protocols. In the ...
xhci's user avatar
  • 1
0 votes
1 answer
86 views

Can I point a subdirectory URL to a different IP/Server? [closed]

I have a React website at "domain.com," which is hosted on an AWS nginx server. The website frontend was developed using React, and the backend was developed using Python and Django. I also ...
vimal.roy's user avatar
0 votes
0 answers
25 views

Proxy Error - Java Web Applications / Glassfish / MySQL / Apache

I have some Java Servlet Web applications running on Glassfish, on an AWS Linux server. The applications are integrated with a MySQL database, installed on the same server. Also, access management is ...
EduOK's user avatar
  • 1
0 votes
0 answers
21 views

How to create a VPC endpoint to access SQL DB hosted inside EC2 instance?

I have a lambda in VPC-1 trying to access a SQL database which is hosted inside an EC2 instance in VPC-2. How should I establish a connection between Lambda(VPC-1) and SQL DB (VPC-2) using VPC ...
Anuj Kadam's user avatar
0 votes
0 answers
6 views

DR Test: How to modify AWS EBS volume to make it "impaired"?

We are designing some disaster recovery tests (ISO 27301) and one of the tests has a branch where the underlying cause is an AWS EBS 'impaired' volume. Does anyone know how we can 'impair' an AWS EBS ...
Konchog's user avatar
  • 101
0 votes
1 answer
82 views

Best method to copy image files from AWS EC2 instance to S3 bucket based on query

What is the most efficient method to copy selected image files from a EC2 instance (Ubuntu 20.04) in production to a S3 bucket while checking if the file exists in EC2? This is a one-time operation. ...
GUIJS's user avatar
  • 1
0 votes
0 answers
37 views

CPU Credits in AWS EC2

I would like to unserstand better how AWS cpu-credit usage give me some insight about cost savings. AWS costs may be extremely complicated to understand. CPU size, cpu-credits, and so on. I try to get ...
Flavio Lenz Cesar's user avatar
0 votes
1 answer
85 views

Validation fails for kops cluster : "kops-controller" is pending

I'm trying to create a Kubernetes cluster on AWS using kops tool. After the cluster is created I run a command to validate it and it's not valid. $ kops validate cluster Using cluster from kubectl ...
Siarhei Vouchak's user avatar
0 votes
1 answer
2k views

The connection to the server 172.31.58.39:6443 was refused - did you specify the right host or port?

I have created 3 nodes on aws ec2. In these three nodes, I have one master node with type t2.medium and 2 worker nodes with type t2.micro I'm facing an issue The connection to the server 172.31.58.39:...
Spiral's user avatar
  • 101
0 votes
1 answer
130 views

Get AWS role name from EC2 instance list using CLI

AWS CLI requests "ec2 describe-instances" and "ec2 describe-iam-instance-profile-associations" include instance profile in the "IamInstanceProfile" property. This ...
Richlv's user avatar
  • 2,354
0 votes
0 answers
11 views

AWS Elastic Compute Cloud EC2 pricing issue

Description Usage Quantity Amount in USD Amazon Elastic Compute Cloud T4GCPUCredits USD 10.90 ↳ $0.04 per vCPU-Hour of T4G CPU Credits 272.513 vCPU-Hours USD 10.90 Can anyone tell me what is this ...
Faizan Anwer Ali Rupani's user avatar
0 votes
0 answers
87 views

How is "Global-DataTransfer-Regional-Byte" transfer calculated?

I started a EC2 t2.micro instance in Canada(Central) region. I've installed WireGuard and Pi-hole in it. Upon VPN Connection, I did some network test using iperf3 between my computer and the instance....
user1843654's user avatar
0 votes
1 answer
115 views

Re-route all incoming traffic to my home computer over the wireguard interface

I have setup a server in AWS with WireGuard server installed on it. I configured the server and the client and the vpn connection is up and running. I am able to ping from my local computer to the ...
Tim B.'s user avatar
  • 117
0 votes
0 answers
57 views

Change timeout period of Elastic beanstalk worker daemon on deploy

I have an Elastic Beanstalk worker ENV but on update or a task that requires it to stop processing it stops after 30s. I know the Daemon receives a SIGTERM on when to stop, but the time out is only ...
Maker of worlds's user avatar
0 votes
0 answers
89 views

Unable to access web server via Cloudflare after configuring EC2 security groups

I have an EC2 instance running a web server (NGINX), and I'm trying to set up authentication via Cloudflare. Here's what I've done: Added a security group to the EC2 instances with an inbound rule ...
MattSt's user avatar
  • 101