Questions tagged [aws-ec2]
The aws-ec2 tag has no summary.
125 questions
4 votes
1 answer
380 views
How to restrict access to an EC2 instance on AWS to only users on a certain VPN?
I have an EC2 instance on AWS which is currently accessible to anyone who has the URL. I want to restrict access to only users who are connected to my company's VPN. How can I do that?
0 votes
1 answer
125 views
Export AWS EC2 SAP ERP VM system to on-premise KVM
We would like to export/migrate a old SAP ERP server from AWS to our on-premise Proxmox Server. I have not had much experience with AWS, but with different on-premise Hypervisors. I therefore thought ...
0 votes
1 answer
43 views
EC2 Inter-instance Traffic Routing Issues - How to Investigate and Solve Them?
I have a db server (let's call it DB) on another cloud service and a VPN server running wireguard on Amazon AWS (let's call it GW), an EC2 instance. I also have a web server as an EC2 instance (let's ...
2 votes
0 answers
201 views
configure TigerVNC server on AL2023
I am not able to configure TigerVNC server on AL2023 I followed all the steps as mentioned in this tutorial. But I must be missing something. https://docs.aws.amazon.com/linux/al2023/ug/vnc-...
0 votes
1 answer
89 views
Ways to find out what the Destination MAC address should be on AWS EC2?
I have an AWS EC2 instance, running Amazon Linux 2023, and I want to send UDP packets (using IPv4) to arbitrary destinations on the internet, and in my use case, I have to manually insert the source ...
4 votes
3 answers
503 views
How to Open ports on AWS with Windows Server
I’m using Windows Server on AWS and need to open various ports for the REST server, remote debugger, and so on. I’ve configured them in the three places I’m aware of: Windows Firewall AWS Security ...
0 votes
0 answers
104 views
Install Mathesar on ec2 instance
I am not able to access Mathesar remotely if instsalled on Amazon EC2 instance. https://mathesar.org/ I am able to install it correctly and get the username / password screen. But once I log in I get ...
0 votes
0 answers
49 views
Possibility of monitoring physical servers used for dedicated hosts in Azure and AWS
I am currently working with virtual machines deployed in cloud services where I retrieve machine details through azure compute and AWS describe instances API. I came across the concept called ...
0 votes
0 answers
39 views
Having difficulty switching servers in AWS load balancer target group for Laravel 5.5 and Vue 2 application
I have a legacy Laravel 5.5 and Vue 2 application hosted on an AWS load balancer with a target group containing three fairly old Ubuntu 20.04 servers. Laravel is configured to store session data in ...
0 votes
0 answers
82 views
AWS EC2 forgot password and not able to use SSH.. How to reset password of aws ec2 ubuntu instance?
I have an aws ec2 ubuntu instance. And now I forgot the password for the user. i have .pem file but it is asking for password to login using below ssh command. ssh -i key.pem user@ip -vvv debug3: send ...
0 votes
0 answers
192 views
Not able to connect EC2 through session manager
enter image description hereI am not able to connect to EC2 through session manager it's stating that plugin Standard_Stream not found I have expanded the root volume but it's of no use still not ...
0 votes
0 answers
74 views
Create ec2 alarm status check for ssm agent
I am trying to add the status of ssm agent in an ec2 instance as a status check. I was trying to create a cloudwatch alarm with ssm command failure as metric and attach it but it does not seem to work....
0 votes
0 answers
206 views
DNS issue on NGINX server pages won't load ERR_NAME_NOT_RESOLVED
OK so I have 5 pages: login.html otp.html billing.html index.html(for debugging purposes) page-not-found.html Intended logic Enter into browser: sub.domain.com/path (eg. sub.domain.com/login) ...
0 votes
1 answer
97 views
AWS host connected to multiple networks cannot find route to other instance in the same public subnet within a VPC
I can't connect to public subnet (a1) on other box within the same VPC (10.0.4.0/16) from private subnets (a2 & a3) Example: ping -I ens6 10.0.4.71 doesn't reach 10.0.4.71 host. I'm looking for ...
3 votes
1 answer
309 views
Partitioning Rocky Linux 9 on AWS ec2
I have a strange issue while working with partitions on my Rocky Linux 9 (non LVM) EC2 instance on AWS. GOAL: I would like to enlarge a little (5GB) my ebs in order to create a new partition and a new ...
1 vote
1 answer
44 views
AWS Instance Connect fails, returns only 'VpcId'
I'm trying to setup EC2 Instance Connect to RDP to a Windows server. I'm running the command like so... aws ec2-instance-connect open-tunnel \ --instance-id <my-instance-id> \ --remote-...
1 vote
0 answers
188 views
Docker build is slow on AWS EC2 even if all layers are cached
I have a Dockerfile that builds on my local PC in a few seconds when all layers are cached. But when I run the same in the pipeline in an AWS EC2 instance, it runs for 8 minutes. I can see that all ...
0 votes
1 answer
69 views
AWS RDS - SQLSTATE[HY000] [1130] Host 'ec2-ip' is not allowed to connect to this MySQL server
My Laravel(hosted on EC2) app database(Mysql) is hosted in AWS RDS it was working fine but now it gives the error "SQLSTATE[HY000] [1130] Host '172...***' is not allowed to connect to this MySQL ...
1 vote
1 answer
119 views
add dependency between "userdata" and kubelet systemd service
I have some experience with systemd, but haven't done anything beyond the basics with it. I have some scripts that I've added to (AWS) "userdata", which I think gets executed by the systemd ...
1 vote
2 answers
205 views
Generating MySQL Dump via Instance started from AMI
I have a live ec2 server instance running with MySQL installed locally (not using RDS), and another backup server that runs MySQL replication as a slave to the live server. I am now trying to generate ...
0 votes
1 answer
138 views
AWS CloudFormation Adding Security Group
Below is a sample of how our team creates new EC2 instances using CloudFormation with AWS. I'm just getting started myself with AWS, but one problem I have is when I need to create a new Security ...
0 votes
1 answer
87 views
Retain IP address when AWS EKS cluster and managed nodegroup is upgraded
We have an EKS cluster version 1.20 and managed nodegroup with a public IP address. When we upgrade the EKS cluster and nodegroup with version 1.21, the managed nodes will start with a new IP address. ...
0 votes
1 answer
273 views
Best approach for HSTS with a redirect to a new domain
Situation: A site we manage got migrated to a new hosted solution and will also have a new domain name. The clients want to keep the old domain name and have it redirect to the new domain name at the ...
0 votes
0 answers
2k views
FailedScheduling too many pods. Preemption: 0/2 nodes are available: 2 No preemption victims found for incoming pod
I configured eks and when performing a deployment, the pod is always in pending state. FailedScheduling appears. My node group is created with 2 node - T2.micro - 20gb. Even the simplest deployment ...
1 vote
0 answers
181 views
eksctl and AsgInstance launch failures due to account quota limit
I was trying to launch an eks cluster using eksctl tool. The cluster is launched but the nodegroup fails to launch. The following error is displayed in the cloudformation of the nodegroup. Error ...
0 votes
2 answers
211 views
MySQL database deleted on AWS EC2 instance [closed]
I have a AWS EC2 Windows instance with XAMPP and a database. To enable global access to the database, I made its IP global. Additionally, I added a password to my phpMyAdmin. However, someone is ...
0 votes
2 answers
201 views
SSH to EC2 times out, but other instances in the same security group are reachable
Something really weird happened to one of my EC2 istances. So I have a security group and a bunch of instances associated with that group. I can SSH into all of those intances. I created a new ...
0 votes
2 answers
285 views
AWS SSL Certificate for Laravel on EC2 instance
I have Laravel application on EC2 instance on Ubuntu, also I have Application Load Balancer and verified AWS SSL certificate. But logically I can’t run Laravel without, NGINX or Apache. I can adjust ...
0 votes
1 answer
415 views
What exactly is aws load balancer "Protocol : Port"?
I have never been able to figure out what this configuration is or does when creating load balancers. The documentation says Choose a protocol for your target group that corresponds to the Load ...
0 votes
2 answers
429 views
Aws ubuntu nginx installed. IP cannot be reached
i have launched aws ec2 intance with ubuntu ami & inbount rule of all traffic. inbound rule all traffic .connected to instance and entered code below to install nginx sudo apt update sudo apt ...
-1 votes
2 answers
3k views
Unable to access Url from Internet through WireGuard VPN tunnel
I am trying to access a router settings web page from Internet. I have setup a WireGuard VPN on AWS EC2. The handshake between the router and the WireGuard server looks good, but I am not able to ...
0 votes
0 answers
231 views
How do i nessus scan to the EC2 server which is behind load balancer
I have a EC2 server which is running behind a load balancer. Load balancer URL has been mapped as A record in route53. Audit team is asking for the public ip address. How do i give them? ALB URL even ...
3 votes
0 answers
370 views
Spread IPsec decryption over multiple CPUs
All IPsec traffic being decrypted is processed on a single CPU, despite having multiple IPsec tunnels (SAs.) How can I get the load shared across multiple CPUs? I'm running Strongswan IPsec on Ubuntu ...
1 vote
1 answer
128 views
Debugging Lambda Connectivity to EC2
I have a simple Lambda deployed into my VPC that is making a call to an EC2 host in the same VPC (and subnet). They both share an SG and I've used the Reachability Analyzer (from the Lambda ENI to ...
0 votes
0 answers
164 views
AWS EC2 Ubuntu instance launches WildFly (Java / Jakarta EE server) but seems inaccessible via browser
I am trying to setup AWS for a JBoss WildFly 31.0.0.Final to get a demo webapp up and running. So I found this tutorial: https://kamalmeet.com/cloud-computing/amazon-ec2-step-by-step-guide-to-setup-a-...
0 votes
1 answer
183 views
duplicate cron process - python pm2
Our setup consists of a Python Flask application deployed on AWS EC2 with autoscaling, and it utilises a MySQL database. We also have jobs scheduled on a separate Linux system, which triggers every 10 ...
2 votes
2 answers
1k views
AWS Instance cannot connect after resizing volume and reboot
i am facing connectivity issues with my AWS EC2 instance after resizing its volume. Here's what I did: I had an EC2 instance running Ubuntu in a container with a full storage. I modified the volume to ...
0 votes
0 answers
255 views
Django on EC2 can't connect to RDS (Same VPC, same subnets)
i set up this environment on AWS: VPC: 1 Public subnet Route table with Internet Gateway 2 Private subnets Route table with NAT I created a subnetgroup with the private subnets and attached it to ...
0 votes
2 answers
662 views
extending EBS volume
I have extended an existing EBS volume from 2.5Tb to 3 Tb , However when i check disk managment I dont see the unallocted space , It shows as 3TB post extension in AWS console but not on my windows ...
0 votes
0 answers
311 views
IPv6 ICMP rules for AWS Security Group
I'm in the process of configuring IPv6 ICMP rules in my AWS Security Group, specifically for an EC2 instance. I need to allow ICMP traffic for the PTMUD protocol and other related protocols. In the ...
0 votes
2 answers
2k views
95% of root file system is in use but cannot see disk space issue
1st of all, I'm a linux & AWS amateur, so I feel as if I'm searching in the dark here. I seem to be getting issues with my Elastic Beanstalk environment. After a few days I get notifications of ...
1 vote
0 answers
51 views
Cant login to AWS EC2 instance with IGW/VPC
Used this q's 2nd answer checklist Hello, I am trying to login to an AWS Linux EC2 instance without much success. I am doing this via cloudshell/android phablet. The VPC has an IGW and a seeming ...
0 votes
0 answers
110 views
Proxy Error - Java Web Applications / Glassfish / MySQL / Apache
I have some Java Servlet Web applications running on Glassfish, on an AWS Linux server. The applications are integrated with a MySQL database, installed on the same server. Also, access management is ...
0 votes
1 answer
362 views
How to create a VPC endpoint to access SQL DB hosted inside EC2 instance?
I have a lambda in VPC-1 trying to access a SQL database which is hosted inside an EC2 instance in VPC-2. How should I establish a connection between Lambda(VPC-1) and SQL DB (VPC-2) using VPC ...
0 votes
1 answer
244 views
API Error labels all over AWS management console (EC2 Dashboard)
After deploying a VPC using terraform, I get this: What causes this / how can I debug this? the terraform validate always succeeds... Often when I refresh the whole browser window, the issue is gone ...
0 votes
1 answer
851 views
Best method to copy image files from AWS EC2 instance to S3 bucket based on query
What is the most efficient method to copy selected image files from a EC2 instance (Ubuntu 20.04) in production to a S3 bucket while checking if the file exists in EC2? This is a one-time operation. ...
1 vote
1 answer
533 views
How do I create an Elastic Beanstalk example?
I have tried to create and deploy on Elastic Beanstalk. It never works. I have spent over 14 hours trying to get EB to work over the course of 1 month. I have followed online tutorials in addition to ...
2 votes
1 answer
802 views
How Do I Use The <VirtualHost> Directive To Host Multiple Sites Using An EC2 Instance, ELB, And CloudFront?
I've been really struggling with this for the past few days, and I'm at a lost. Here's what's going on. I have an EC2 instance (Amazon Linux 2023) behind an ELB and a CloudFront distribution that I ...
0 votes
0 answers
203 views
CPU Credits in AWS EC2
I would like to unserstand better how AWS cpu-credit usage give me some insight about cost savings. AWS costs may be extremely complicated to understand. CPU size, cpu-credits, and so on. I try to get ...
0 votes
1 answer
290 views
Validation fails for kops cluster : "kops-controller" is pending
I'm trying to create a Kubernetes cluster on AWS using kops tool. After the cluster is created I run a command to validate it and it's not valid. $ kops validate cluster Using cluster from kubectl ...