Skip to main content
Share Your Experience: Take the 2024 Developer Survey

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
0 votes
0 answers
15 views

Scheduled tasks not launching in ECS using EC2

I have existing tasks that are scheduled to launch into a cluster that only supports Fargate. I created a new cluster that supports both Fargate and EC2, updated the task-definition to supported both ...
Dustin Oprea's user avatar
0 votes
0 answers
43 views

Nginx: Not loading wordpress repo on EC2 instance - Getting 'This site can't be reached'

I've been trawling through forums trying to figure out why nginx won't point to my wordpress repo and loads the page 'This site can't be reached'. I followed the steps in this guide https://medium.com/...
Michael Such's user avatar
0 votes
0 answers
27 views

Having issue with Route53, ec2, Apache Virtual host and wordpress working

I am having wordpress blog - https://blog.pepagora.com, hosted on Amazon aWS EC2 instance and DNS is managed in Route53. Suddenly blog site stopped responding and couldn't figure out why? For testing ...
Devops Cloud's user avatar
-2 votes
0 answers
28 views

SES SMTP credentials are leaked multiple times [closed]

We are using SES SMTP with cPanel webmail (Exim) and PHP to send emails. This issue happened today and last week. Currently, We have the credentials in 2 places: 1- Exim configuration. 2- PHP files. ...
Dev's user avatar
  • 1
0 votes
1 answer
26 views

The EC2 connection was working fine but suddenly the connection timed out

`I have one bastion ec2, and I had no problem with connecting with putty, but when I tried to connect today, I couldn't connect with "Network Error : connection timed out". I also set the ...
이남웅's user avatar
0 votes
0 answers
19 views

How to add tags automatically to AWS Volumes with Terraform

I have the following Terraform script to deploy an EKS cluster (tags left empty to hide values) EKS.tf provider "aws" { region = var.region profile = var.profile default_tags { ...
user23627827's user avatar
0 votes
1 answer
46 views

Yum update package awscli requries python3

I have an EC2 instance with Rocky Linux 9 (Official) - x86_64 and Cpanel installed. I'm receiving notifications daily about this issue when the system tries to update packages or when I run /scripts/...
Dev's user avatar
  • 1
0 votes
0 answers
44 views

NGINX + Django + UBUNTU + GUNICORN + AWS + ROUTE53 = Default NGINX Page and not my Website

Right, I have a Django powered website which I am now ready to deploy into production. Except it keeps coming back with the default NGINX page - which I knew about already. The tutorial is as follows, ...
JoJoJohan's user avatar
0 votes
0 answers
60 views

Error 500 with "Invalid block tag" issue

So I get the Internal Server Error message come up on my browser when I set DEBUG = False after I correctly have set up gunicorn and nginx and I'm currently in production mode. In Debug, all is fine, ...
JoJoJohan's user avatar
0 votes
1 answer
59 views

Remove public IPv4 from AWS EC2 instances

Since February 1, 2024, AWS started charging for public IPv4 and I have several EC2 instances. Some instances I can having only public IPv6, for others I need to keep public IPv4. I disabled Elastic ...
TNT's user avatar
  • 101
0 votes
0 answers
69 views

AWS EC2 Autoscaling Group timeout during scale up from 0 to 1 then "Failed to find readiness information for" until manual termination

I have an AWS EC2 Auto Scaling Group for GPU accelerated g4dn-2xlarge instances. Recently we've had a couple of days where the ASG times out after 5 minutes scaling from 0 to 1 and the instance it ...
Shanteva's user avatar
  • 101
-1 votes
0 answers
68 views

Error code 0x8007000d for any .NET IIS web app on an EC2

I'm trying to learn deployment of .NET web apps on Amazon EC2. I've created a template Blazor Server project targeting .NET7, published it in Release mode to a folder. After that, I uploaded all the ...
Val's user avatar
  • 111
0 votes
0 answers
21 views

TeamCity agents on burst EC2 instances

I am playing with TeamCity and I have a cloud agent profile setup to use an AMI in my account from a previous project (basic Linux machine) TC can launch a new instance when a build is queued but I ...
Mr Pablo's user avatar
  • 101
0 votes
2 answers
69 views

Creating an ssh keypair for AWS Lightsail/EC2 instances doesn't work as expected

I've created a fair few SSH keypairs in my days but AWS seems to handle them differently. I'm using AWS Lightsail and it has a notion of 'default' keypairs. This is fine for the 'normal' user that AWS ...
Alistair Ross's user avatar
0 votes
2 answers
62 views

Windows server spot instance shuts down randomly (status failed / bad-parameters)

I've been using AWS for decades at this point and I started using spot instances for various reasons including professional reasons such as testing software I develop, etc. I mostly use Windows Server ...
Tommy B.'s user avatar
  • 1,434
0 votes
0 answers
13 views

k8s's pod in EC2 get disabled every hours

I'm running k8s on my ec2(t3.medium, not eks node) as masternode for webapp. I thought t3.medium could handle k8s, but.. my api server just not works(nginx shows 502 bad gateway) every hours and I ...
bucky2's user avatar
  • 1
0 votes
0 answers
98 views

EC2 network burst credit balance

How do I know my usage of network credit balance? I have a t4g.small instance and periodically I face timeout issues on the networking services hosted there. As it stated here: An instance receives ...
mega.venik's user avatar
0 votes
0 answers
25 views

Not able to FTPS to another server from EC2 under ALB and WAF

I'm having an issue whereby I'm not able to ftps to another server from my EC2. If I run a simple command lftp username:password@serverurl:2121 then proceed to ls, I will be stuck at ls at 0 [...
user774150's user avatar
0 votes
0 answers
78 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 ...
Ayush's user avatar
  • 111
0 votes
3 answers
223 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 ...
Cardoso's user avatar
  • 51
0 votes
0 answers
33 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....
M.rob's user avatar
  • 1
0 votes
0 answers
114 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 ...
Kawu's user avatar
  • 101
1 vote
1 answer
55 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 ...
Denham's user avatar
  • 38
0 votes
1 answer
23 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.
Shalini Sharma's user avatar
0 votes
0 answers
141 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 ...
Fitchings's user avatar
0 votes
1 answer
30 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. ...
Alex Reynolds's user avatar
0 votes
1 answer
50 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 ...
user2879764's user avatar
0 votes
0 answers
116 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, ...
C5H8NNaO4's user avatar
  • 103
0 votes
2 answers
335 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 ...
Damiano Dotto's user avatar
1 vote
0 answers
160 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" ...
Zabs's user avatar
  • 211
1 vote
1 answer
526 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 ...
barbiefront's user avatar
3 votes
1 answer
1k 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 ...
Paul Draper's user avatar
1 vote
1 answer
129 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 ...
CJ Bradley's user avatar
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 ...
thaimin's user avatar
  • 123
0 votes
1 answer
201 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 ...
Chris's user avatar
  • 1
2 votes
1 answer
126 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 ...
Dario Seidl's user avatar
0 votes
1 answer
89 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....
barbiefront's user avatar
0 votes
0 answers
253 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 ...
SlimenTN's user avatar
  • 101
0 votes
1 answer
95 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 ...
Ranjeet Singh's user avatar
0 votes
0 answers
28 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 ...
Frontier_Setter's user avatar
0 votes
0 answers
67 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 ...
Jackie's user avatar
  • 191
0 votes
0 answers
46 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 ...
MJR's user avatar
  • 1
0 votes
1 answer
247 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: ...
AlxVallejo's user avatar
  • 1,096
-4 votes
1 answer
284 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 ...
mongj's user avatar
  • 1
0 votes
1 answer
92 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 ...
thunderbolt's user avatar
0 votes
0 answers
59 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 ...
Marko Todoric's user avatar
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 ...
C C's user avatar
  • 475
0 votes
0 answers
94 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) ...
talematros's user avatar
0 votes
0 answers
30 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 ...
Shubham Gupta's user avatar
0 votes
1 answer
183 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 ...
daniel's user avatar
  • 1

1
2 3 4 5
133