Quantcast
Channel: Active questions tagged amazon-ec2 - Stack Overflow

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...

View Article


docker-pr proc already listening on port 80? Installed docker with snappy on...

I ran this:docker run -ti -p 80:80 --name esproxy "$tag"but I get this error:docker: Error response from daemon: driver failed programming external connectivity on endpoint esproxy...

View Article


AWS all annotations not applied

I am using a yaml config to create a network load balancer in AWS using kubectl.The load balancer is created successfully and the target groups are attached correctly.As the part of settings, I have...

View Article

Target group isn't configured to receive traffic from the load balancer

I've a task to realize the structure like at picture and add the missing components.Task picAs far as I can understand I need to do the vollowing:Create VPCCreate 2 public subnets and 2 private...

View Article

EC2 instance attached to a load balancer is showing Unhealthy status

I created a load balancer and assigned it one of the running EC2 instance. After creation, I navigated to Target Group section in the AWS Console under Load Balancing and when I selected the target...

View Article


Getting warning sign while launching environment in AWS Elastic beanstalk

Screenshot for referenceHi,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...

View Article

Jenkins job on AWS server

I have a windows instance set up on AWS. I have Jmeter and Ant installed on that machine to run API test cases.So I can successfully run tests on remote server. I need to set up a job on corporate...

View Article

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 from...

View Article


Cannot access ports in AWS ECS EC2 instance

I am running an AWS ECS service which is running a single task that has multiple containers.Tasks are run in awsvpc network mode. (EC2, not Fargate)Container ports are mapped in the ECS task...

View Article


File system like alternative to s3 on EC2 for horizontally scalable file...

Terabytes worth of files will still be served over s3 and CDN, but many local binary operations need to take place, and existing application logic prefers local copies of files. The goal is to have s3...

View Article

Understanding the reasoning behind periodic latency spikes on EC2 instance (...

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...

View Article

nginx error: (99: Cannot assign requested address)

I am running Ubuntu Hardy 8.04 and nginx 0.7.65, and when I try starting my nginx server:$ sudo /etc/init.d/nginx startI get the following error:Starting nginx: [emerg]: bind() to IP failed (99: Cannot...

View Article

Image may be NSFW.
Clik here to view.

Azure Migrate Assessment Fails for AWS Windows Server – WinRM Running but...

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:...

View Article


django errno 104 Connection reset by peer

I am trying to run my django server on an Ubuntu instance on AWS EC2. I am using gunicorn to run the server like this :gunicorn --workers 4 --bind 127.0.0.1:8000 woc.wsgi:application --name woc-server...

View Article

Autoscale based on SQS queue size

I have put together these commands to autoscale EC2 instances based on SQS queue size. I have run all commands and my queue is at 10 messages and a single instance hasn't been launched.I am trying to...

View Article


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...

View Article

How to troubleshoot failed SSH access to private EC2 instance that used to...

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...

View Article


How to download a file from EC2 instance to Local Computer

i have an instance of ec2.it have some files.i tried to download my file from ec2 instance to my local Ubuntu 13.10.i run this command scp -i /home/ritesh/.ssh/id_rsa2...

View Article

How to find AWS keypair public key?

So, it seems a developer on our team deleted the public key for our App-Production.pem key in our .ssh/authorized_keys, so the default AWS Key Pair no longer works, breaking our deployment...

View Article

An error occurred (InvalidSubnetID.NotFound) when calling the RunInstances...

I'm running the below commandaws ec2 run-instances --image-id ami-xxxxxxx --count 1 --instance-type t2.micro --key-name xxxxxxxx.pem --subnet-id subnet-xxxxxxx --region us-east-1 --security-group-ids...

View Article

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...

View Article


All tasks on an ECS service stuck in PROVISIONING state

I'm trying to set up a service that launches 20 single-container tasks with an application load balancer. The problem is that every task stays stuck on PROVISIONINGThe service has logged an error...

View Article


grafana ec2-instance filter by tags

I am trying to set up a var template in grafana that would allow me to only show ec2 instances with specific ec2 tags. I did findec2_instance_attribute(us-east-1, InstanceId, {"tag:app":...

View Article

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 need...

View Article

Why do I keep getting a 'MessageEncryptor::InvalidMessage' for Rails app when...

I was following this tutorial for deploying a Rails application to an EC2 instance using Capistrano: https://www.youtube.com/watch?v=YJzYmhxB8rE&t=318sI'm pretty sure I done all the necessary...

View Article


EC2 user-data installs NVIDIA drivers successfully but ECS agent update only...

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 in...

View Article

HTTPS Setup in Amazon EC2 Instance

How do I enable HTTPS in Amazon EC2 instance? Because our website is running on HTTP and doesn't provide secure connections.Would need some suggestions from others.

View Article

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...

View Article

AWS ec2 getaddrinfo ENOTFOUND error code when trying to get instanceId

My aim is to get the instanceId when my script is started. (Cause I want to connect my webserver as backend with the AWS elb. This even works when I hardcode the id) So now I try to code a function...

View Article



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 commandnitro-cli run-enclave --cpu-count 2 --memory 4132 --enclave-cid 16--eif-path crons_enclave.eif...

View Article


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>