Questions tagged [amazon-ec2]
Amazon Elastic Compute Cloud (EC2) provides self-service, on-demand, pay-for-what-you-use computing infrastructure resources.
6,592
questions
0
votes
0
answers
34
views
dns problems in self managed aws ec2 cluster with aws-vpc-cni
I'm new to k8s and I've been trying to learn it. I faced a problem with trying to setup aws-vpc-k8s-cni on my fresh k8s cluster with coredns. Here's the problem in detail.
Cluster & Network ...
1
vote
3
answers
111
views
Upgrade mysql 5.6 to 8 not working on AWS Linux based EC2
I am working with EC2 for MySQL DB. The OS of EC2 is AWS Linux-based Ubuntu. The current version of MySQL is 5.6.50. I am going to upgrade it to 8.0. I tried to upgrade it with this command: sudo yum ...
0
votes
0
answers
20
views
Error "The connection to the server was refused - did you specify the right host or port?"
I'm new to K8s. I'm configuring a K8s cluster on EC2 and I've started by installing docker, then started:
systemclt start docker
Installed kubeadm on the EC2 instance:
(https://v1-28.docs.kubernetes....
0
votes
0
answers
27
views
AWS EC2 Ubuntu 22.04 LTS session timeout not working (ClientAliveInterval, ClientAliveCountMax)
I installed an AWS EC2 instance using Ubuntu:
ubuntu@ip-aaa-bbb-ccc-ddd:~$ lsb_release -ds
Ubuntu 22.04.3 LTS
I was using the following simple tutorials to set the ClientAliveInterval and ...
0
votes
0
answers
10
views
API Errors on AWS management console
I am seeing these API Errors on the AWS management console (EC2 & VPC dashboards). Sometimes refreshing will allow it to work for a short time.
This only seems to happen when accessing from our ...
0
votes
1
answer
16
views
Archive files in EC2 Instance
I want to create the archives of the files in EC2 instance to load them into the S3 bucket, but I am not getting a proper command to run on the AWS cli.
0
votes
0
answers
82
views
Got read permissions but not write permissions in aws SFTP in EC2
I'm a bit new to aws and especially SFTP but I'm trying to set up an EC2 instance with SFTP so I can access it with FileZilla and I've set it up and can copy files from it into my own directories but ...
0
votes
1
answer
24
views
How to add assignments to EC2 host /etc/fstab when identifiers are not unique?
I have volumes connected to an AWS EC2 instance running Linux and would like one of them to be mounted as root / on reboot.
One option is to put the device UUID into the host's /etc/fstab entry.
...
0
votes
1
answer
30
views
No SSH access to EC2 instance launched by ASG, while I can access an otherwise identical instance
I'm trying to SSH to an EC2 instance that's part of an ASG associated with an ECS service. To help narrow down the problem, I created new instance from the same launch template. I've carefully ...
0
votes
0
answers
35
views
EC2 micro instance randomly uses 100% of CPU and stays there
I am running a node.js service and a docker postgres image on an EC2 micro instance. Usually it runs fine for weeks / months but randomly the instance goes up to 100% CPU usage and stays there, ...
0
votes
2
answers
173
views
Optimizing PHP-FPM Configuration for WordPress on Bitnami EC2 t3a.medium instance
I'm running a WordPress website on an AWS EC2 t3a.medium (4Gb Ram) instance using Bitnami. The server's RAM often gets completely filled, causing the server to crash and I need to restart it from ec2 ...
1
vote
0
answers
66
views
Can no longer SSH to my AWS EC2 instance - Operation timed out error
I am using the following command to SSH into my AWS EC2 server and this has been working fine for some time, however recently it hangs and then times out.
ssh -i "ec2-pro-clubs-server.pem" ...
0
votes
0
answers
48
views
New EC2 instances can't see site-to-site VPN?
I have several EC2 instances that are all a part of the same VPC and subnet. I created a site-to-site VPN connection years ago and all servers can ping the IP and connect successfully. However, I have ...
0
votes
1
answer
154
views
what does 'AVC avc: denied { name_connect }' mean, and how do i prevent it?
i had an Amazon Linux 2023 web server that had been running normally for weeks now. this morning, it became inexplicably unresponsive for about two hours before (inexplicably!) recovering. according ...
1
vote
1
answer
347
views
How to upgrade to IPv6 for AWS EC2?
Starting yesterday, AWS is charging for IP addresses (IPv4). I would like to upgrade my EC2 instances to IPv6, but I must be missing the docs on how to do that?
I can't seem to get an EC2 instance ...
1
vote
1
answer
84
views
Accessing RDS or EC2 instance without '.pem' key
I am working for a charity who has a few of their services on AWS.
They hired an agency years ago to spin up these intranet and tools platforms. I am trying to get a dump of their db, for backup ...
0
votes
0
answers
25
views
AWS Automatic IAM Roles for Service Users
I have an EC2 instance that has an assigned/assumed role. When I run:
aws sts get-caller-identity
as the main login user or with sudo it returns the account information expected. However, I have a ...
0
votes
1
answer
176
views
Routing traffic between newly established S2S VPN between AWS and Azure
I am trying to establish a site-to-site VPN connection between AWS and Azure to connect some VMs together. I followed a set of instructions from Microsoft and have successfully connected an Azure ...
2
votes
1
answer
59
views
What are the differences between the migration options for Elastic Beanstalk Multi-container Docker environments to AL2?
We're running an Elastic Beanstalk Multi-container Docker environment on Amazon Linux 1, which has been deprecated and needs to be migrated to Amazon Linux 2.
The documentation presents two options ...
0
votes
1
answer
84
views
EC2: multiple subdomains with one public IPv4 address
i have many EC2 instances, each of which currently has a public IPv4 address associated with it:
Instance
Public IP
DNS
juno
7.8.9.10
ec2-1-2-3-4.compute-1.amazonaws.com
ceres
7.8.9.11
ec2-1-2-3-5....
0
votes
0
answers
136
views
nginx: redirect to docker containers with https enabled
I have two containers running in an EC2 instance, the first uses port 4200 and the second 8188. I also have a domain name "my-domaine.com" connected to my EC2 instance.
I'm aiming to reach ...
0
votes
1
answer
46
views
How to setup a S3 backed Media server with basic auth / password protection
Requirement
Serve audios and videos stored in a S3 bucket
Selectively protect folders with basic auth (username password);
Low latency as much as possible but not necessary
Cost is also a factor but ...
0
votes
0
answers
26
views
How do IaaS vendors ensure consistent performance of the vCPUs they sell across different hardware?
IaaS vendors like AWS sell cloud instances based on vCPUs. In principle, vCPUs within the same type of cloud instance should have similar single-core performance (excluding the issue of noisy ...
0
votes
0
answers
42
views
Can I access a WSL sshfs mounted location from windows explorer?
I have the following...
xx@BigBoy:~ $sshfs -o IdentityFile=~/my.pem [email protected]:/home/ec2-user/my-drive/data efs
xx@BigBoy:~ $ls -al efs/
total 12
...
0
votes
0
answers
44
views
AWS OpenVPN server - accessing other instances
Happy new year!
I've just set up an AWS account and have three instances at the moment (one is for a Certificate Authority so is largely irrelevant). Both are running on Ubuntu 22.04, one is hosting ...
0
votes
0
answers
133
views
Proxy error: /var/run/rpc/xmlrpc.sock (localhost) failed
I'm inheriting this old Django project hosted on an EC2 instance. It used to run on Heroku and used a Proximo proxy in front of gunicorn. Now it just runs a systemd script with the following:
...
-4
votes
1
answer
179
views
Why run multiple containers of the same docker image in single EC2 instance
I am new to docker and my question is based on the following Reddit thread: https://www.reddit.com/r/docker/comments/p7d12j/why_run_multiple_docker_instances_of_1_image_in/
Some comments in the thread ...
0
votes
1
answer
77
views
Ping from a network namespace to another EC2 instance not working without NAT rule
I have the below setup.
I have setup two EC2 instances. I have added the security group rules on both machine to allow ICMP traffic and both can ping each other.
On one machine I have created two ...
0
votes
0
answers
52
views
Random timeout between ec2 instances in same az
My elastic-based monitoring system will quite often report timeout on an http check where target is the AWS EC2 instance.
Check is performed from another EC2 instance in same region, same AZ, same ...
5
votes
2
answers
1k
views
Thousands of incoming HEAD requests - best way to handle with EC2?
I had unusually high https traffic recently from a couple of IP address with agents masquerading as Windows clients. I blocked the range via 'deny' inside of .htaccess (Apache 2.4)
I'm still getting ...
0
votes
0
answers
73
views
AWS EC2 networking
I've been trying to understand how exactly networking works for EC2 instances, more specifically I'm coming from on-prem infrastructure where I had dedicated networking devices (switches/routers) ...
0
votes
0
answers
24
views
How to configure Apahce with websocket through python daphne DJango on EC2 server
Below is my virtual host for running python
<VirtualHost *:8000>
DocumentRoot /var/www/VITSBACKEND
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log ...
0
votes
1
answer
90
views
AWS instance gateway using Amazon Linux
I'm trying to create a gateway on an aws ec2 amazon linux machine so that a worker machine without access to the internet can gain access via the gateway. Then I will install a server on it and ...
0
votes
0
answers
35
views
Can you exceed 1 gigabit from an EC2 instance to an AWS Aurora MySQL instance?
I'm importing a terabyte of data into an AWS Aurora MySQL table from an EC2 instance. Because our service will be down while migrating prod, I care a lot about the import speed.
Currently I can't ...
0
votes
1
answer
75
views
SSH access to my AWS EC2 container
C:\Users\javac>ssh -i "DemoServer.pem" [email protected]
The authenticity of host 'ec2-52-15-253-230.us-east-2.compute.amazonaws.com (52.15.253.230)'...
0
votes
1
answer
613
views
How to enable IMAP PHP extension on AWS EC2 instance Amazon Linux 2023?
This question is related with the following one: How to enable IMAP php extension on aws EC2 instance but they are completely different.
I use PHP 8.1 and Amazon Linux 2023, this version does not have ...
-2
votes
1
answer
115
views
Windows application listens on IPv4 but not IPv6 UDP
I have setup a Windows Server 2022 AWS EC2 instance. I installed and am testing an application that only runs on Windows.
When setting up the EC2 instance I enabled both IPv4 and IPv6. AWS requires ...
0
votes
0
answers
56
views
Trying to use HTTPS to multiple host ports
I'm trying to configure Nginx to serve my application on both port 443 and 5501 with SSL. I have the following Nginx configuration:
upstream pixel {
server pixel.example.com:8080 weight=1;
...
0
votes
1
answer
62
views
Guaranteeing two EC2 instances on different hypervisors in same AZ
As part of a security evaluation we've been asked if we can set affinity so that two EC2 instances in the same AZ are not hosted on the same physical machine. Obviously it's very unlikely that two of ...
0
votes
0
answers
47
views
How to initialize cockpit on CentOS8?
I am trying to access my public IP of the EC2- box on port 9090 to access centOS8 cockpit but I am unable to get to my centOS8 cockpit.
My security group from the server is Security group
This is what ...
0
votes
1
answer
67
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 ...
0
votes
1
answer
2k
views
How-to install docker-compose on al2023
The docker documentation states the compose plugin is installed automatically with the latest docker version.
I built a new EC2 instance running al2023 and installed docker. But received this error:
$ ...
0
votes
0
answers
55
views
Wordpress behind AWS ELB: constant 302, or not found
I have just installed a new WP under EC2, behind ELB.
ELB itself is secured, however, EC2's httpd is not.
Crazy Wordpress doesn't recognize it's being served on HTTPS, and installs itself in HTTP mode,...
0
votes
2
answers
211
views
Nginx Server Block Configuration Issue - Conflicting Domains
I have a clean installation of Nginx, specifically version 1.24.0, on my Amazon Linux 2023 server, and I'm facing an issue with the server block configuration. I have three server blocks set up for ...
0
votes
1
answer
190
views
How to access RHEL non-UBI content when the host is an EC2 instance
The Red Hat Universal Base Image (UBI) FAQ claims that
8. Will applications built on UBI have access to the same content as images built on a non-UBI base image?
Yes, but accessing non-UBI content ...
0
votes
1
answer
287
views
Why would mounting / unmounting an XFS filesystem make it bootable again?
I’ve got some EC2 instances running Amazon Linux 2 and 2023 which use XFS as their root volume. Occasionally, after several reboots, the instance refuses to boot and gives a kernel panic, because it ...
0
votes
1
answer
304
views
How to install a Python library in a t2.micro what requires high memory usage?
Tested with t2.micro/t3.micro and Ubuntu 22.04.3 LTS. At first I thought it was a storage limit but I increased to 30GB.
The steps to reproduce it:
Create the instance
Perform update and upgrade of ...
0
votes
1
answer
538
views
Install FreeIPA on Amazon Linux 2023
The goal is to install "freeipa" on Amazon Linux 2023 AMI.
Amazon Linux 2023 doesn't officially support the package by default, due to this AMI is made of Fedora 34, 35, 36, and CentOS 9 ...
0
votes
0
answers
90
views
Apache mod_wsgi serving rest api and static website on virtualhost
So I have an ec2 instance running debian with apache and mod_wsgi to serve my flask rest api and I also have a static web page using react which makes calls to the api to abstract the database logic.
...
0
votes
0
answers
305
views
Amazon Linux 2023 AMI Permissions
I'm setting up a new EC2 Instance with AMI Linux 2023. (I'm super new to Linux/AMI). I followed this tutorial on the AWS website: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-lamp-amazon-...