Questions tagged [aws-ec2]
86 questions
10
votes
4 answers
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 only now?)
SSH port for each instance is protected…

Rougher
- 203
- 1
- 6
5
votes
1 answer
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 CPU is showing spike in the usage(only on…

Rakshith k
- 51
- 4
5
votes
3 answers
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 redis6 is available:…

VIVEK
- 53
- 1
- 4
5
votes
1 answer
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, and then two network interfaces, one in each…

Pablo Fernandez
- 7,438
- 25
- 71
- 83
3
votes
1 answer
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 decided to build the following architecture as a…

lobis
- 31
- 2
2
votes
0 answers
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 a connection.
URL: http://(public IPv4…

Scatt
- 21
- 1
2
votes
1 answer
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 running on AWS as non-domain joined and the time…

kirill_l
- 237
- 3
- 11
1
vote
3 answers
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, sending a 504 error.
I already checked all other…

Gabriel I.
- 41
- 7
1
vote
1 answer
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 developer in another state (I'm in the US) is…

George Young
- 11
- 1
1
vote
1 answer
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 instance again
Then I was ready to play around with…

3VYZkz7t
- 111
- 2
1
vote
0 answers
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 hostname and move on.
When trying to do the same…

Gunther Schadow
- 129
- 8
1
vote
0 answers
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 elastic IP. How can i see the EIP in the command line?

Alakananda S
- 111
- 3
1
vote
0 answers
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 avoid having to unzip) from this tutorial. That…

stupac8908
- 393
- 1
- 3
- 5
1
vote
0 answers
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 "NGINX" page though the SSL was installed successfully.
The…

Uno
- 11
- 2
1
vote
0 answers
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 everything in an 8 cores CPU instead of using…

Raymond Pang
- 111
- 3