Questions tagged [amazon-ec2]
Amazon EC2 (Amazon Elastic Compute Cloud) is part of Amazon Web Services. Use this tag for questions about interfacing with the EC2 API, or other programming-oriented topics. Questions about EC2 networking, or OS-level issues are off-topic but may be suited for other sites such as Server Fault, Super User, or Unix & Linux.
amazon-ec2
37,098
questions
0
votes
0
answers
11
views
AWS EC2 - enX0: Could not set DHCPv4 address: Connection timed out
After my EC2 instance (Amazon Linux 2023) has been running for several hours (around 5-8 hours), it suddenly fails with an "Instance reachability check failed" error. I am unable to access ...
0
votes
1
answer
19
views
How to set up application load balancer (ALB) with AutoScalingGroup (ASG)
I have created a ECS cluster defining min capacity as 1 instance. It's running fine.
I have a task definition with a simple js express app running fibonacci app (to simulate CPU usage for large fib ...
-1
votes
0
answers
31
views
Static files issue in Django while deploying to AWS EC2 Machine
I made a multi-tenant app using django and now want to deploy it to AWS.
When I run the server on EC2 machine and go to django admin this is what I get:
It works fine locally though.
Also when I open ...
-1
votes
0
answers
21
views
VS2022 release build - wwwroot folder missing?
create app with template asp.net core web app ( Razor pages )
build in release mode
Does not have wwwroot folder in release directory /bin/release/net8/
Running in VS2022 showing the styling
Deploy it ...
-3
votes
2
answers
56
views
How do install these packages on Ubuntu?
I'm trying to install 2 packages that were no issue on Anaconda virtual environment. But on an AWS EC2 instance of Ubuntu (v24.04 LTS GNU/Linux 6.8.0-1010-aws x86_64), it's not working.
Typically i ...
-1
votes
1
answer
19
views
Allow ssh and ftp access to AWS EC2 ubuntu
Previously, I accessed /home/ubuntu through port 22 only with the ssh server key, and now an external partner company has to access FTP and work on /home/ubuntu.
So I created ftpuser account and ...
0
votes
0
answers
21
views
Running laravel application on AWS EC2
ss of my webpage
getting this error, even after trying multiple permission changes and ownership changes.
I am trying to run a laravel application in my ec2 instance, after installing all the ...
0
votes
0
answers
54
views
AWS: How to let a S3 frontend (React, Axios) communicate with an EC2 backend (python3/Django, DjangoREST, corsheaders)
I followed a tutorial for creating a basic To-Do app (so CRUD) with a React+Axios frontend (ServiceWorker, bootstrap) and Django backend (DjangoREST, corsheaders), and would like to put it on AWS's ...
0
votes
0
answers
7
views
public ip for a docker pod inside ec2
I have a k8s cluster and docker pod runs in a ec2. I am trying to assign elastic ip to an ec2 instance so docker container running inside the ec2 will have that fixed ip address. We consume external ...
0
votes
1
answer
18
views
No instances created on cluster (even though min capacity=1)
I am trying to create a ECS cluster (fib-cluster-10) with min 1 instance, using the following settings under "infrastructure":
the ecsInstanceRole has the following policy JSON:
{
"...
0
votes
0
answers
11
views
How can I connect aws instance running ssh on other port using aws ec2 connect
I need to connect to aws instance using aws ec2 connect, but it is using port other than 22. While connecting getting access denied. Also is there any way to recover pem
I am getting error while ...
0
votes
1
answer
16
views
how to solve this error in ec 2 and route 53
i already created docker image and that is successfully run in browser using ip address with port.example
18.194.240.17:3000 this type. 18.194.240.17:3000 using how to create hostedzone inside a ...
0
votes
0
answers
19
views
React app/Fast API : How to trigger EC2 Turn off/ Turn on using AWS Lambda and keep their IP static?
I have two EC2 instances .
One instance runs a React APP.
Another instance runs a Fast API.
Currently deployment process is (completely manual):
Turn on the Fast API Ec2 Instance,
Get the public IP ...
-1
votes
0
answers
10
views
How can I set up an EC2 instance optimized for low latency calls to a service that is co-located in the same region
I want to optimize for lowest possible latency calls to a service that runs in AWS in a particular region.
My aim is to set up an EC2 instance with high virtual cpu count that can support a fairly ...
-1
votes
0
answers
26
views
ec2-describe-instance-status InvalidInstanceID.Malformed
When I run
aws ec2 describe-instance-status --instance-ids i-XXXXXX
for any of my instances, I get:
An error occurred (InvalidInstanceID.Malformed) when calling the
DescribeInstanceStatus operation: ...