Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
7 views

Elastic Beanstalk SecurityGroups Configuration Error: "Value exceeds the maximum allowed length: 200"

I have a deployed AWS Elastic Beanstalk environment, and it's showing the following configuration error: Configuration validation exception: Invalid option value: '[security_group_names]' (Namespace: '...
Dulana's user avatar
  • 1
-3 votes
0 answers
50 views

Cannot find module 'express' in server.js [closed]

I'm working on a Node.js project and express is not found when I use it in server.js. This is what I see when I run pm2 logs. In pm2 the only active process is server.js /home/ec2-user/.pm2/logs/...
Bogdan Mihai Pantelimon's user avatar
0 votes
1 answer
33 views

EC2 user-data installs NVIDIA drivers successfully but ECS agent update only works when run manually

I’m launching an ECS-optimized Amazon Linux 2 instance with this user-data script. The NVIDIA driver and runtime install without error at boot, but my ECS agent update never takes effect until I SSH ...
Mrblue's user avatar
  • 5
0 votes
0 answers
53 views

Why do I keep getting a 'MessageEncryptor::InvalidMessage' for Rails app when attempting to deploy with Capistrano

I was following this tutorial for deploying a Rails application to an EC2 instance using Capistrano: https://www.youtube.com/watch?v=YJzYmhxB8rE&t=318s I'm pretty sure I done all the necessary ...
Michael Egharevba's user avatar
0 votes
1 answer
33 views

TerminateInstanceInAutoScalingGroup is slow to remove the last instance

I have an autoscaling group of EC2 instances. Sometimes I need to scale it manually by calling SetDesiredCapacity and TerminateInstanceInAutoScalingGroup. It works well, except for the case when I ...
Aliaksei's user avatar
  • 1,028
0 votes
0 answers
47 views

Problem Starting Tomcat 9.0.104 inside Windows EC2 instance with Launch template

I am trying to upgrade my tomcat version from 9.0.21 to 9.0.104. The EC2 instance is created via a Powershell script launch template. When I start the instance I use chocolately to install Java and ...
Josh Morris's user avatar
-1 votes
0 answers
39 views

How to troubleshoot failed SSH access to private EC2 instance that used to succeed [closed]

My colleague and I are administrators on a number of AWS EC2 instances in our private VPC. Our IAM users have identical configurations (same permissions policies and same group membership). Until ...
AlanSwansea's user avatar
-1 votes
0 answers
27 views

AWS API Gateway Unable to access FastAPI Swagger docs and the endpoint

Devops already deployed the FastAPI gateway and every endpoint. Every time I try to access the endpoint it always says fetch error not found stage/openapi.json I even try to use root. Here is the main....
Trahwidhi Oxtan's user avatar
0 votes
0 answers
26 views

Azure Migrate Assessment Fails for AWS Windows Server – WinRM Running but Error During Discovery [closed]

I'm attempting to migrate a t2.xlarge Windows Server (hosted on AWS) to Azure using the Azure Migrate tool. To do this, I’ve set up an appliance server on AWS with the following specs: Instance type: ...
Charanjeet Kaur's user avatar
2 votes
1 answer
91 views

Understanding the reasoning behind periodic latency spikes on EC2 instance ( 50 ms )

While debugging a latency issue in our software, I stumbled into a behaviour which is quite puzzling to me. Here's the code #include <iostream> #include <thread> #include <atomic> #...
Rohith Uppala's user avatar
-1 votes
1 answer
33 views

Are EC2 Instance Profile and Task Execution Role overlap in AWS ECS

Both EC2 Instance Profile and Task Execution Role are said to be used by ECS agent, then why do we need both of them? for example, the ECS agent needs a permission to "Pull down docker images ...
user25521292's user avatar
0 votes
0 answers
12 views

Getting warning sign while launching environment in AWS Elastic beanstalk

Screenshot for reference Hi, I have launched the environment successfully in Elastic Beanstalk but still getting severe/warning sign in health status, i am not able to troubleshoot and understand the ...
SK Fardin's user avatar
0 votes
0 answers
43 views

KeyCloak - Reverse Proxy config AWS CloudFront

I'm really getting desperate. I have an EC2 instance in AWS running two containers. One of them is KeyCloak (and its db). This should be accessible via a Cloudfront URL. But I am encountering problems ...
TheGameZ's user avatar
0 votes
1 answer
33 views

Unable to delete pod from EC2 instance

I have an EKS cluster running, and I use an EC2 machine to submit jobs that get scheduled on the EKS cluster. The EKS cluster and EC2 machine are attached with an IAM role, which has access to ...
Vishwas M.R's user avatar
  • 1,689
1 vote
1 answer
27 views

Is it possible to skip the first 2 minutes of data from prometheus time series when querying in Grafana?

I have a metric VolumeIOPSLimitExceeded that's a gauge and it produces either a 1 or 0, 1 when the IOPS limit for a volume has exceeded, and 0 when it's fine. The problem is that when EC2 instances ...
oldfashionedcoder's user avatar
0 votes
0 answers
45 views

How to restrict S3 VPC Endpoint access to external S3 buckets without using "Principal": "*"?

I’m trying to securely allow EC2 instances (in private subnets) to access AWS-managed S3 buckets used for patching (aws-ssm-*, amazonlinux-*, etc.) via an S3 VPC Endpoint. Here’s my situation: The ...
Anton's user avatar
  • 11
0 votes
1 answer
49 views

Debug Java application deployed in EC2 instance with intellij

How can I debug a java application deployed in EC2 instance from my Intellij, knowing that I have to use a jump server to connect the EC2 instance with SSH ??
rainman's user avatar
  • 2,659
-1 votes
0 answers
24 views

AWS Elastic Beanstalk failed update Composer on EC2

I have set up this ebextensions file to update Composer, by following this documentation -> https://docs.aws.amazon.com/en_us/elasticbeanstalk/latest/dg/php-configuration-composerupdate.html Only ...
Mirko's user avatar
  • 53
0 votes
0 answers
39 views

Why is AWS EC2 Describe Tags endpoint override being stripped in AWS SDK for Java v2.25+

My Java microservice is using the AWS SDK for Java v2.21. I construct an EC2 Client in this way: Ec2Client.builder().credentialsProvider(DefaultCredentialsProvider.create()) .endpointOverride(...
Martin Bamford's user avatar
0 votes
0 answers
35 views

Docker buildx kubernetes driver within ec2/eks

I have ssh'ed into an ec2 thats run in an eks cluster. Has anybody built images using buildx kubernetes driver? I can build images locally but when I run: docker buildx create --name kube-driver --...
Justin's user avatar
  • 1
-3 votes
1 answer
64 views

Can we use AWS lambda as a layer on EC2? [closed]

We have a lot of code in our code base which deals with integration to external systems. We use EC2 and one of our developers decided to rewrite the whole thing in Lambda which is at least half year ...
inf3rno's user avatar
  • 26.2k
0 votes
0 answers
34 views

Building docker image of keycloak with curl using 2 stage process hangs

dnf hangs when doing a two stage build of keycloak to include curl on running scriplet glibc-2.34-125.el9_5.3.x86_64. This works properly on a Windows machine but fails on AWS Linux 2 server. I have ...
Timothy Vogel's user avatar
0 votes
0 answers
64 views

Lambda Function Failing to Start EC2 Instance Despite Successful Execution

The Lambda function (start, stop) for EC2 is not working. I have set up an IAM policy and role named START_STOP_EC2 with the following configuration: json { "Version": "2012-10-17&...
ADITYA CHOURASIA's user avatar
0 votes
0 answers
12 views

Elastic Beanstalk fails to create an Auto Scaling Group

I get the following error when I try to deploy a 'High Availability' EBS environment Creating Auto Scaling group named: awseb-e-uyrzzcumbu-stack-AWSEBAutoScalingGroup-H6IXr3kSXJO8 failed. Reason: ...
Chubi Best's user avatar
0 votes
0 answers
26 views

AWS Snapshot "Full Snapshot Size" much larger than expected

All of my AWS snapshots (for 13 different EBS volumes) are showing "Full Snapshot Size" nearly equal to the full volume size. It's as if all of the empty space is being counted too. Even on ...
Jason Wood's user avatar
1 vote
0 answers
9 views

EAI_AGAIN error when making an HTTPS API call from Next.js app deployed on EC2, but works in browser/Postman

I have a Next.js application deployed on an EC2 instance (Amazon Linux/Ubuntu) acting as the frontend. The backend API is hosted on a custom domain (e.g., https://api.myapp.com) — also on AWS but ...
Ashish Rautela's user avatar
0 votes
0 answers
13 views

Properties validation failed for resource EC2Server with message: [#: extraneous key [MetadataOptions] is not permitted]

This is my simple cloudformation template to create EC2 with instancemetadatatags option enable while launching. "AWSTemplateFormatVersion": "2010-09-09", "Parameters"...
Vanaan's user avatar
  • 69
0 votes
0 answers
32 views

AWS NodeJS Websocket server "sleeping" - no error

I've got a NodeJS websocket running on an EC2 instance. I'm keeping it alive with PM2. I'm working on it via SSH using vis studio code. The system is running well and I have about 500 clients (desktop ...
Glenn Angel's user avatar
0 votes
0 answers
38 views

Blocking AWS REST API (Hosted is account A) Access for a Specific Server in Account B

I have an AWS REST API hosted in AWS Account A, which is accessible from AWS Account B. I need to block access only for a specific EC2 instance in Account B, while ensuring that the API remains ...
sonu_chauhan's user avatar
0 votes
1 answer
16 views

Connection Getting Timed Out When Sending Request to Expressjs App on EC2

I have an expessjs app running on EC2 on port 5000. I am able to successfully send request to the EC2 directly via its public Ipv4 like http://54.125.456:5000/. But when I set up IPv4 as an A record ...
Waleed93's user avatar
  • 1,310
0 votes
1 answer
36 views

XCOPY not working when run from Userdata in Windows ec2

This is a bizzare issue. For whatever reason xcopy is not working under these conditions: Windows Server 2022, EC2Launch v2 Run from Userdata When I log in and run it manually it works just fine. ...
Ranald Fong's user avatar
0 votes
0 answers
40 views

Google Calendar API on EC2 (AWS) - webbrowser.Error: could not locate runnable browser

I am developing a Django App where a user can access his Google Calendar using this script credentials = None token = os.path.join(folder, "token.pickle") if os.path.exists(token): ...
Sim81's user avatar
  • 1,934
0 votes
0 answers
10 views

Expo dev build on mobile phone won't connect to server on AWS EC2

I'm working on a mobile app with a react native frontend using graphql and expo, and have created a development build for it. The node.js server is running on an AWS EC2 that currently allows inbound ...
pelotador.1's user avatar
0 votes
0 answers
18 views

What is the point of the Windows EC2 userdata detach setting

I am trying to find the significance of the detach setting in windows EC2 in regards to userdata. According to the AWS docs it says run as a detach process. Which is not very useful by itself, forcing ...
Ranald Fong's user avatar
0 votes
0 answers
26 views

My docker container running my spring boot app on ec2 takes a long time to work after first api call

I have created a spring boot application, and I'm using github actions to dockerize the application and deploy it onto my aws ec2 instance. It works most of the time however, if I close my computer ...
Trishul 's user avatar
1 vote
1 answer
31 views

gunicorn giving 404 even running successfully

I am running gunicorn in ubuntu Problem statement Unable to serve the app using gunicorn command gunicorn -b 0.0.0.0:8000 app:app, it is giving 404 but it is working if I run python app.py. Also I am ...
sumit kumar's user avatar
0 votes
0 answers
35 views

Possible Reasons for Error Connection Timeout EC2

I have an EC2 running simple ExpressJS app with PM2 and Nginx set up as a reverse proxy which accepts the request to upload the file. The connection between Nginx and PM2 is set up at localhost:5000 ...
Waleed93's user avatar
  • 1,310
0 votes
0 answers
31 views

python Joblib Parallel restricted by cpu pinning on AWSEC2

The following code works as expected on my Mac from joblib import Parallel, delayed with Parallel(n_jobs=num_workers) as parallel: for _ in range(0, dataset_size, batch_size): batch = ...
J Reichardt's user avatar
-1 votes
1 answer
53 views

Cannot connect to websocket

I have app on Django Channels that use Daphne as a termination server and hosted on AWS EC2. So problem is, when i run app locally(or via ngrok) and try to connect everything is working, i have ...
Anton's user avatar
  • 89
0 votes
2 answers
77 views

Why changing root block device type is in-place update not replace?

Expected Terraform aws_instance root_block_device volume_type change will cause replace (destroy and create) of the instance because I believed the underlying SSD device type will cause replacement. ...
mon's user avatar
  • 22.6k
0 votes
0 answers
41 views

Terraform deployment - 502 Bad Gateway on ALB DNS; Target group EC2 instances failed health checks

I'm using Terraform to deploy a simple architecture on AWS: 3 auto-scaling EC2 instances (ASG) in a private subnet and install nginx on the servers ALB in a public subnet Public subnet and private ...
chessy's user avatar
  • 1
1 vote
1 answer
31 views

Security group setup to restrict EC2 to VPC lambda

I have an EC2 and lambda in the same VPC. The EC2 is running a web server, and I only want it accessible via my lambda (and ssh), so I set the EC2 security group to have inbound rule http-tcp-80-...
Philip H's user avatar
  • 372
0 votes
2 answers
47 views

How to create new EC2 with existing Terraform Script

I have a terraform script which is creating an EC2 instance with efs, ebs, etc. I ran the script once and it has created a EC2 instance. Now I want to run the terraform script again to spin up a new ...
Aditya Jain's user avatar
0 votes
0 answers
54 views

Deploy janus-gateway server with SIP plugin inside Docker in AWS EC2

I am trying to deploy janus-gateway-server(build from the latest version of main) with a proxy-service as a sidecar. The main idea is to hide janus-gateway-server from exposing all its rest endpoints ...
Arpan Banerjee's user avatar
2 votes
0 answers
48 views

AWS EC2 in Private Subnet Not Appearing in SSM Session Manager

In aws I created a t3.nano aws-linux ec2 instance. Attached an instance profile with the following policies: - AmazonEC2RoleforSSM - AmazonSSMFullAccess - AmazonSSMManagedEC2InstanceDefaultPolicy - ...
jrz's user avatar
  • 1,421
0 votes
1 answer
48 views

Why is du reporting that docker is taking up more space than is available on the EBS volume? [closed]

I have an EC2 instance running docker on Ubuntu 24.04, with a 30Gb EBS (gp3) root volume. I see mkdtemp: private socket dir: No space left on device when I log into it because the container has done ...
jlmt's user avatar
  • 1,998
0 votes
1 answer
75 views

Java Application in Docker Container Can't Access IMDS, but Curl Works

I am running a Java-based Docker container (eclipse-temurin:21-jdk) inside an EC2 instance using Docker Compose. I understand that by default, Docker containers cannot access the host network unless ...
k.elgohary's user avatar
0 votes
0 answers
49 views

Unable to access ECS-hosted app without ALB in AWS - works with load balancer, fails without

I'm trying to access my application without putting an ALB in front. Currently, I have one running instance which has an ALB in front of it. I can access the app perfectly from the internet in that ...
thecodeiackiller's user avatar
1 vote
0 answers
62 views

AWS Nitro Enclave unable to resolve paths

I am trying to run a NestJS app inside a Nitro Enclave. But whenever i started the enclave using command nitro-cli run-enclave --cpu-count 2 --memory 4132 --enclave-cid 16 --eif-path crons_enclave....
Faisal Anwar's user avatar
0 votes
0 answers
75 views

Spring Boot application with Supabase on AWS Elasticbeanstalk error

The WAR file is running on my local Linux, but not on AWS Elastic Beanstalk. So I thought it could be an issue with the security group and added outbound rules and inbound rules for port 5432 for ...
Blen's user avatar
  • 161

1
2 3 4 5
738