Questions tagged [aws-ec2]
86 questions
1
vote
1 answer
Copying files to/from EC2 instance using SSM alone (no SSH or S3 bucket)
I'm trying to setup a ready-to-run terraform template for some performance testing. It creates two EC2 instances in the same cluster placement group and preinstalls a bunch of tools. I don't know the SSH public keys of the users of it in advance and…

eof
- 121
- 3
1
vote
0 answers
Setting up deployment for .net 6 to AWS EC2
(Lowly dev trying to play at devops)
I've successfully created an EC2 instance on an Amazon Linux platform.
I have a .net 6 API running locally, with the code base sitting in a private GitHub repo.
I have been through dozens of pages of setup…

Randy Hall
- 111
- 3
1
vote
2 answers
AWS EC2 /dev/nvme1n1 mounted without partition table
I have an EC2 server on nitro system (c6g.2xl) where I have attached a 2nd volume. This is a web hosting environment and the disk is regularly increased in size.
For some reason I accidentally mounted the disk on - what I would call - the "partition…

jdog
- 121
- 7
- 29
1
vote
0 answers
How can i route pods in a EKS cluster to a specific NAT Gateway within the same subnet
Am running an EKS cluster deployed on a node (in public subnet) with two namespaces, one pod running in each of the namespaces. I have created two NAT gateways on the same subnet. I would like to route egress traffic from pod A to NAT gateway A and…

Karthik Balasubramanian
- 151
- 1
- 5
1
vote
1 answer
AWS auto destroy EC2 instances older than X days
We create automatically EC2 instances as ReviewApps. The reviewer are supposed to destroy the ec2 instances but this doens't happen always.
So i would like to script (Lambda, Terraform, etc?) that EC2 instances for this specific AWS user are get…

RogerSik
- 39
- 8
1
vote
0 answers
AWS-CLI EC2 AMI :: Get details about owner via OwnerId
Given the OwnerId field returned from an AWS ami query such as:
$ aws ec2 describe-images --image-ids ami-015f906ef3e2123c0 --region ap-southeast-2 --query Images[].OwnerId
[
"602401143452"
]
how can I retrieve some information about who the…

spinkus
- 188
- 2
- 16
0
votes
1 answer
Re-route all incoming traffic to my home computer over the wireguard interface
I have setup a server in AWS with WireGuard server installed on it. I configured the server and the client and the vpn connection is up and running. I am able to ping from my local computer to the server address (192.168.45.1), and also from my…

Tim B.
- 117
- 3
0
votes
0 answers
Change timeout period of Elastic beanstalk worker daemon on deploy
I have an Elastic Beanstalk worker ENV but on update or a task that requires it to stop processing it stops after 30s. I know the Daemon receives a SIGTERM on when to stop, but the time out is only 30s, how do I change this?
I have tried to find…
0
votes
0 answers
Unable to access web server via Cloudflare after configuring EC2 security groups
I have an EC2 instance running a web server (NGINX), and I'm trying to set up authentication via Cloudflare. Here's what I've done:
Added a security group to the EC2 instances with an inbound rule allowing all traffic (all protocols and ports) from…

MattSt
- 101
- 1
0
votes
2 answers
Spot instance windows auto login in User Data using Boto3
I want to launch a Windows spot instance on AWS with a specific AMI and launch the instance and run PowerShell command. The problem i am facing issue is that, when the instance is launched, it shows "Running" on the EC2 dashboard but the Windows was…

dextoruz
- 1
- 1
0
votes
1 answer
EC2 instance refuses to connect to ssh, and web server running in it does not handle any requests - how to troubleshoot?
I have two ec2 instances which run different applications on them, which is served through CloudFront. Tonight both became unresponsive at the same time. Any attempts to contact the apps through CloudFront ends up in 504.
I attempted:
Rebooting the…

Edy Bourne
- 103
- 3
0
votes
1 answer
Using Ubuntu 22.04 in EC2 via CloudFormation, why does cfn-hup never trigger?
Amazon's documentation includes extensive examples of using cfn-hup to automate updates of instances provisioned via CloudFormation. For one of many examples, see…

Nye
- 239
- 1
- 5
0
votes
0 answers
How do I track page cache miss in an amazon cloud instance?
Hi I have been using AWS instance to do perf experiment. Now I am interested to know the linux OS page cache miss rate for a given time window.
Online resources told me to try "cachestat"…
0
votes
0 answers
Is this AWS EC2 hardware (cpu, memory) too old?
Is this EC2 hardware too old? Is there a way to select newer hardware(e.g., faster CUP, Memory DDR5) when launching a new EC2 instance?
*-cpu
description: CPU
product: Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
…

eastwater
- 111
- 2
0
votes
0 answers
EC2 port 80 refused to connect on public IP but can connect using private IP
Question simplified
I can do curl {publicip}:4321 but not curl {publicip}:80 or curl {publicip}. But from the server's ssh, i can run curl {privateip}:80 and curl localhost:80 without any issues. And also, both port 80 and port 4321 are added to…