Questions tagged [aws-ec2]

128 questions
12
votes
4 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:…
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
7
votes
2 answers

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…
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…
5
votes
2 answers

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 SSH public keys of the users of it in advance and…
eof
  • 181
  • 2
  • 3
4
votes
3 answers

How to Open ports on AWS with Windows Server

I’m using Windows Server on AWS and need to open various ports for the REST server, remote debugger, and so on. I’ve configured them in the three places I’m aware of: Windows Firewall AWS Security Group AWS Lightsail Inbound Rules I’ve set the…
3
votes
0 answers

Spread IPsec decryption over multiple CPUs

All IPsec traffic being decrypted is processed on a single CPU, despite having multiple IPsec tunnels (SAs.) How can I get the load shared across multiple CPUs? I'm running Strongswan IPsec on Ubuntu 22.04 on AWS c5n.2xlarge with aesni_intel…
3
votes
2 answers

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
  • 131
3
votes
1 answer

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 container_name: angel-postgres restart: always volumes: …
2
votes
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…
2
votes
0 answers

configure TigerVNC server on AL2023

I am not able to configure TigerVNC server on AL2023 I followed all the steps as mentioned in this tutorial. But I must be missing something. https://docs.aws.amazon.com/linux/al2023/ug/vnc-configuration-al2023.html#install-vnc-server-2023 I keep…
2
votes
2 answers

AWS Instance cannot connect after resizing volume and reboot

i am facing connectivity issues with my AWS EC2 instance after resizing its volume. Here's what I did: I had an EC2 instance running Ubuntu in a container with a full storage. I modified the volume to a larger size. Followed the steps in this…
Shaugi
  • 131
2
votes
1 answer

How Do I Use The 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 want to host two (or, eventually, more) subdomains…
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
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
1
2 3
8 9