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

Postgres Plus Cloud Database vs Amazon Relational Database Service (Amazon RDS)

The Postgres Plus Cloud Database was announced early this year.As I do not have a lot of experience on database clustering, I am wondering which one I should use. Can anyone give me a compare between...

View Article


Can I use Elastic Beanstalk to deploy workers?

By workers I mean a python script that runs some task in an infinite loop. This script should be deployed to a separate EC2 instance and run forever (perhaps using supervisor).I'm successfully using...

View Article


Deploying a high availability Postresql 9.0 on Amazon EC2 with PGPool-ii

We have an existing web application that uses Postgresql 9.0 and PGPool-ii. I am thinking of migrating our infrastructore to Amazon EC2 and was inspired by the following link:...

View Article

Image may be NSFW.
Clik here to view.

How to list 3d party Amazon Marketplace instances with AWS CLI?

The EC2 -> Instances -> Reserved Instances shows some 3d party instances available for purchase: How can this list be obtained with the AWS CLI?I've tried:aws ec2...

View Article

Creating a user and adding public key on aws ec2 instance

I've created a user and copied the public key to .ssh/authorized_key for that new user and also I've set the pubkeyauthentication to yes on /etc/ssh/sshd_config after saving the file restarted the sshd...

View Article


Allow / Restrict specific HTTP METHODS at AWS elb level

Is it possible to restrict specific HTTP METHODS at elb level? we want to allow only HTTP GET through AWS elb.I checked AWS docs and googled but didn’t find any appropriate solution.If it is not...

View Article

AWS SQS issue. The specified queue does not exist for this wsdl version

I'm facing the following issue.My application wants to use two AWS SQS queues which are in the same region. My Applications running on EC2.is there problem to have two AWS SQS queues in the same user...

View Article

How to setup cron job on Amazon Linux AMI

I am hosting Tiny Tiny RSS site hosted onAmazon Linux AMITo update the feed automatically I have to run the following Cron job.Referencehttp://tt-rss.org/redmine/projects/tt-rss/wiki/UpdatingFeeds*/30...

View Article


Permission denied (publickey). Couldn't read packet: Connection reset by peer

hi im configuring ftp on amazon Ec2 micro linux instance but i found errorPermission denied (publickey). Couldn't read packet: Connection reset by peeri have install vsftpd on my instance,configure...

View Article


EC2 instance keeps bleeding disk space in spite of no known process to me...

I run a small apache2 reverse proxy BUT made sure to keep the logs in check ie nuked pretty much all logs. Now I am also puzzled by the fact I should have 500 megs of free space on paper but in reality...

View Article

AWS : VPC Networking mode

I have an ecs architecture, which has an application running as a container and a nginx side car container. So each task has 2 containers(nginx+app). These two containers are linked through bridge...

View Article

Image may be NSFW.
Clik here to view.

Simple IAM Issue with CodeDeploy

I'm having an issue with a seemingly trivial task of getting CodeDeploy to deploy Github code to an AutoScaling Group in a Blue/Green Deployment.I have a Pipeline setup, a Deployment Group setup, and...

View Article

error: subprocess-exited-with-error × Running setup.py install for lru-dict...

I am trying to build a container image with AWS EC2 Ubuntu to push on AWS ECR Repository for a python script which needs the web3.py library. However, it is throwing me an error that I'm not sure how...

View Article


Exception in thread "main" java.io.FileNotFoundException but I have my file...

I'm trying to create a cluster on EMR on EC2 Clusters to process my jobs I have created a spark cluster with default VPCI have checked my IAM and I've allowed "s3:CreateBucket", "s3:DeleteObject",...

View Article

moto can't mock ec2 with securitygroup

I recently asked this question:moto unit test EC2 - 'NoneType' object has no attribute 'id'I now have at least found out about why this error occurs.I call ec2.run_instances() with multiple parameters,...

View Article


Nodejs backend endpoint not hitting consistently. Using nginx, ec2

I have a game where people can draw and guess, similar to scribble.io. I'm using Nginx for load balancing, hosted on AWS, with a backend written in Node.js.The problem I'm encountering is that my...

View Article

Unable to Access Web Server via Load Balancer in Auto Scaling Group (but...

I am currently learning AWS. I created an EC2 instance and set up a web server on it. Then I created a template from that instance and successfully launched another EC2 instance from the template — I...

View Article


EC2 error: cannot create temp file for here-document: Read-only file system

Looks like my Ubuntu 14.04 EC2 made the fs read-only. cd /var/ (pressing tab for autocomplete)cannot create temp file for here-document: Read-only file systemBut I have plenty of free space and memory...

View Article

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

View Article

com.hazelcast.core.HazelcastInstance IllegalStateException: Node failed to start

I am trying to a POC for auto-discovery of hazelcast instance in ec2. These ec2 instances would be in same security group, which should be able to find other nodes of hazelcast and together these will...

View Article

Issue with upgrading aws EC2 t2 machine to t3 or t3a

I have a few EC2 t2 instances, some of them are micro, and some are small and medium. All of these EC2 machines are accessible on port 22 via SSH.Following are the specifications of my t2 machines:OS...

View Article


How to access NiFi v2.5(deployed over EC2) over internet?

I am using AWS EC2 windows instance, and AWS API gateway for api calls. While my EC2 instance hosts NiFi application, i want to access the application via Nifi rest api through api gateway.Since by...

View Article


Keep the nodejs server running in ec2 using aws ssm send command

I'm trying to deploy server code to EC2 automatically. The flow I'm following rn is: use GitHub actions to run aws cli commands to store my artifacts in a s3 bucket. From there use ssm send-command to...

View Article

Image may be NSFW.
Clik here to view.

Access to the private network from the cloud9

I have the server which has 172.31.50.95 and not have public IP in the private subnet.Now I try to access this from the cloud9 which is in public subnet.$wget 172.31.50.95--2024-09-09 15:02:23--...

View Article

Monitor outbound connections from a servers with source process details

I have a AWS server. In my server I used iptables to check outbound connections.sudo iptables -A OUTPUT -m set ! --match-set outbound_req_monitor_exclude_ip dst -j LOG --log-prefix "OUTBOUND: "...

View Article


AWS SaaS system unavailable, but all AWS metrics look Ok, where to...

We have a SaaS system that has unexpectedly started becoming unavailable during heavy usage each weekday. The system is under its heaviest usage from around 11am - 1pm EST each weekday. The system runs...

View Article

How to reduce docker image size in jdk 24 [closed]

I'm trying to reduce the Docker image size, but I'm unable to do that.Here it's my updated Docker image**New One **FROM openjdk:24-jdk-slimUSER rootRUN apt-get update && \ apt-get install -y...

View Article

AWS IAM permission policy for EC2 instances access doesn't work

I'm new to AWS and I want to restrict access for a group of users to have full access to EC2 services only. Below are the steps I did:Created a IAM group named "EC2 Admins"Created an inline permission...

View Article

to get the instance count of a certain period via LaunchTime wrt Powershell

I have tried with the belowIs my Date format correct as per awscli LaunchTime ?To get the last 5 Days Instance count which was created via LaunchTime with of AWS cli in Powershell: $getDays = Get-Date...

View Article



How to remotely kill a process on amazon EC2 linux instance

I use Amazon EC2 instances to perform some complex computation by using the AWS Java SDK, these computations might take so long sometimes. Hence, I need to kill the process running on the EC2 instance...

View Article


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