Questions tagged [amazon-ec2]

Amazon Elastic Compute Cloud (EC2) provides self-service, on-demand, pay-for-what-you-use computing infrastructure resources.

Filter by
Sorted by
Tagged with
0 votes
0 answers
400 views

EC2 instance Status Check failed and server stopped working

I am using an AWS EC2 instance (t3.xlarge) running on Ubuntu server 18.04.6 LTS, which was working fine. But suddenly I encountered an error where the instance status check failed "Instance ...
Surya H's user avatar
  • 21
0 votes
1 answer
255 views

Do firewalld rich-rules apply irrespective of the allowed services in a zone?

Context: I have firewalld running on an AWS EC2. Goal: I want to add a rich rule to the default zone (public) that allows traffic from a certain CIDR range/IP address range/subnet over port 443 (HTTPS)...
Prithvi Boinpally's user avatar
0 votes
1 answer
755 views

Cross Account SSM session: AccessDeniedException

I have two AWS accounts and one role in each account: Account-A have RoleA and Account-B have RoleB. RoleA will assume the RoleB to be able to connect in an EC2 instance in Account-B through ssm start-...
Arrow Root's user avatar
0 votes
0 answers
248 views

How to make Ubuntu VM available to multiple users in the cloud?

I have a design technical question. Let me describe the use case first: I have 20 students. My idea is that they all can run a full Ubuntu Desktop from within their web browser. Everyone should have ...
befaro's user avatar
  • 43
0 votes
2 answers
160 views

EC2 instance randomly crash

My EC2 instance kept crashing, here is the syslog, can server admin expert share some insight? https://pastebin.com/jfP8qhZX
Shawn's user avatar
  • 217
1 vote
0 answers
647 views

Configure Secondary Interface on EC2 using Ubuntu 22.04

I have launched a EC2 instance having OS Ubuntu 22.04 which has a primary interface ens5 I have attached a secondary Interface ens6. This is the output of ifconfig -a root@ip-172-31-7-213:/home/ubuntu#...
ph3ro's user avatar
  • 145
2 votes
1 answer
959 views

Are there any benefits in using HTTPS between a load balancer and EC2 targets?

I've spent some time refactoring a load-balanced web application in AWS in order to make it end-to-end HTTPS, CloudFront->ALB->EC2. This was mostly just for fun, to see if I could do it. Having ...
user1751825's user avatar
0 votes
1 answer
863 views

AWS VPN with split tunnel cannot connect to Internet after connecting to AWS VPN

AWS VPN with split tunnel enabled. When I connect to the VPN with the AWS VPN Client, I lose Internet on my Mac endpoint. However, I do seem to reach the VPN as I see my connection in the AWS VPN ...
Mariano Martinez Peck's user avatar
0 votes
1 answer
2k views

How to configure AWS Application Load Balancer to point to multiple ports on the same server

I cannot get access to the second port that I want to have to. So, here are the listeners I have in my ALB: HTTP:80 - that does not have security policy or SSL cert but it is always redirecting to ...
VitoCK's user avatar
  • 103
0 votes
1 answer
57 views

Why does boot time and workload performance degrade after launching a large number of T2 instances on AWS?

I'm running a swarm of T2 instances on AWS, each with an average lifespan of 5 minutes. I start an instance, do some workload, and then terminate it. I'm using my own AMI on a GP2 volume. After ...
David Sýkora's user avatar
0 votes
0 answers
661 views

From a running EC2 instance, how do I download the AWS generated private key for use with SSH and WinSCP?

From a running EC2 instance, how do I download the AWS generated private key for use with SSH and WinSCP in PEM format? I expected to see Download on the Actions menu, but it's not there. I'm ...
mbmast's user avatar
  • 133
1 vote
2 answers
562 views

Netcat successfully sends UDP packet despite all UDP traffic being blocked via Network ACL

I've created an AWS instance in the default VPC and I've blocked all UDP traffic in the Network ACLs. Here's how my outbound rules look: Rule number Type Protocol Port range Destination Allow/Deny ...
dodov's user avatar
  • 151
0 votes
1 answer
83 views

Using S3 instead of MinIO for video management

I am relatively new to AWS so I wanted to reach out to the gurus in the community to get some advice on architecture, and I thought I would share my thoughts. I am building out cloud infrastructure ...
Jeremy Leys's user avatar
3 votes
4 answers
602 views

Best way to backup a WordPress site on EC2 instance

My WordPress site is sitting on a single EC2 instance. My site has 60GB worth of files and a 800MB database size. My site is running out of space just by running the Duplicator plugin to back it up. ...
xesoh43966's user avatar
0 votes
2 answers
1k views

AWS Billing for EC2 Data Transfer in Free Tier

I am new to AWS. I recently created a Free Tier account to install WordPress. I followed instructions like this to install: https://www.wpbeginner.com/wp-tutorials/how-to-install-wordpress-on-amazon-...
Devanarayanan's user avatar
0 votes
0 answers
189 views

AWS: Ping between multiple namespaces in seperated EC2 Instance

I am encountering an issue where I am unable to receive a response when attempting to ping from a namespace located within a public EC2 instance to a private one. To better illustrate my situation, I ...
Tanvir Rahman's user avatar
0 votes
1 answer
345 views

Can multiple EC2 Auto Scaling Group policies be defined for a single environment?

Given an Auto Scaling Group with a single EC2 environment, am I able to create a scheduled scaling policy and a CPU target tracking policy for the ASG? For example, I would like to define a scheduled ...
Xamuel's user avatar
  • 1
0 votes
2 answers
65 views

AWS EC2 resource utilization

Wondering how everyone else looks at recourse utilization in AWS EC2 instances. For example, I'm trying to 'right-size' many of our over-provisioned instances to the correct instance type/performance ...
boog's user avatar
  • 240
0 votes
1 answer
550 views

AWS EC2 Instance right-sizing, more suitable instance types?

I have some EC2 instances that are currently over-provisioned for cpu/mem. The problem I'm seeing in trying to right-size these instances is that a lot of them use barely any cpu and have a baseline ...
boog's user avatar
  • 240
0 votes
1 answer
77 views

Access: (0000/----------) on a file in linux. Do I have a dead file?

Preface: I'm not a linux person. I'm a webdev trying to SSH into a Ec2 instance via WSL. I found the .pem file from the previous developer's (dude left the company) machine and moved a copy to my ...
hnewbie's user avatar
0 votes
0 answers
141 views

IAM user cannot see EC2 resources?

given the following role, why can my test IAM user not see any EC2 instances? When I login with the test user and go to EC2 I just see "You are not authorized to perform this operation". As ...
THE JOATMON's user avatar
2 votes
1 answer
1k views

How do I figure out what is filling up my AWS EC2 file system? [duplicate]

Elastic Beanstalk is telling me that my root file system is 96% full. When I SSH into the EC2 instance and run df, I can see that my root file system is 7.95GB/8GB used: Filesystem 1K-blocks ...
Chris.B's user avatar
  • 421
0 votes
0 answers
63 views

Request throughput between Graviton instances ( C7xLarge vx C72xLarge)

Question: I have multiple(roughly 8) Ec2 C7xLarge instances which can comfortably handle 2500 to 3000 requests/per second. I am running this using an Elastic Beanstalk environment. In terms of ...
Sunil's user avatar
  • 101
0 votes
0 answers
758 views

nginx: [emerg] cannot load certificate key etc/nginx/certs/ within EC2 instance

Im currently running NGINX on a Docker container. In an EC2 instance running Ubuntu 20.04 I have stored the SSL keys in the directory /etc/ssl/certs. I have the certificate and I have the key. When I ...
steven aguilar's user avatar
0 votes
0 answers
95 views

Mimic user permissions on AWS EC2 instances using IAM roles

I'm setting up an AWS account with several users. Each of these users has policies attached that restrict their access to specific S3 buckets/objects and the EC2 instance types / Autoscaling Groups ...
Marcelo Villa's user avatar
0 votes
3 answers
7k views

Nginx: *42 upstream sent too big header while reading response header from upstream - random behaviour

I have an ec2 instance running nginx. Here is my nginx config: server { listen 443 ssl; root /var/www/angular/dist/testenpoint-website-angular; index index....
PilotPatel's user avatar
0 votes
0 answers
607 views

EC2 instance is running but cannot connect to it through curl or website

I have a running EC2 instance and have the pem key to it. However when I ssh into the instance run curl localhost: I get the following message: 500 Internal Server Error Internal Server Error The ...
hawkhawk's user avatar
0 votes
0 answers
531 views

How To install ChromeOS Flex on AWS

How To install ChromeOS Flex Install AWS ec2, I go through this link but did not get so much help related to AWS Using CloudReady-Home-v83-x64.ova in my VMware Workstation Player, it works fine, but I ...
sam23's user avatar
  • 59
1 vote
1 answer
366 views

NGINX Hosting multiple servers in same domain

I have a website being served by Nginx and I'm trying to do something that I don't know if it's possible the way I'm trying to do but the case is: I have Application A and B made with React / Node. ...
Henrique Hefler's user avatar
0 votes
1 answer
139 views

can not mount EBS volume to centos EC2 instance

I have an ec2 instance running centos and I want to add an EBS want to it. I created and attached the volume to my instance. my volume is attached as /dev/sdf. But when I try to check if there is any ...
leauradmin's user avatar
0 votes
0 answers
529 views

How to connect Cloudfare to an EC2 Amazon server?

Im running an Amazon EC2 server with Ubuntu. I've installed Nginx and gone through the setup instructions provided here. The link has one of the chain of tutorials. I've done all the setup, and ...
Markus Down's user avatar
0 votes
1 answer
255 views

How do I add a second virtual host to an Apache server config?

I have an Apache server running on an AWS EC2 instance. Currently, one virtual host is running successfully on the server, and I want to add a second virtual host / domain, but I can't figure out how ...
HartleySan's user avatar
0 votes
0 answers
397 views

Why does ec2 monitoring show 10% cpu and htop 100%?

I am confused. I have an EC2 t2.micro (I know, micro, but until recently it was ok) instance with 5 Kafka consumers which, according to htop, use 100% CPU all the time. It seems to be confirmed by ...
george007's user avatar
  • 113
0 votes
1 answer
197 views

VyOS on AWS EC2, new IPSEC tunnel won't pass traffic- what am I missing

This is an existing environment that I just stepped into. Running VyOS as a AWS EC2 instance, which handles all of the site-to-site routing for our company. Everything is already up and working. We ...
boog's user avatar
  • 240
0 votes
0 answers
194 views

Connectivity between two EC2 instances does not work

I try to ping or ssh between these instances (A to B), neither work, both time out. Instance A (i-0e332d1880c8f93ae) - CentOS Instance B(i-0a1e4a76358059ba3) - Debian They share VPC, and the ...
Jean-François Kener's user avatar
1 vote
1 answer
249 views

Why does `hdparm -t` take so long to produce accurate results on my EC2 instance?

I'm profiling a data-processing program that I wrote and I want to understand the theoretical throughput of the machine I'm on. Specifically, I want to measure what disk read speed my g4dn EC2 ...
cade's user avatar
  • 121
0 votes
0 answers
76 views

How do I remount /home as the ec2-user in Ansible?

I can manually remount /home as the ec2-user by executing these three lines: $ cd / $ exec sudo -i # mount -a How do I do this in Ansible without rebooting? Edit: /home is on a separate volume. No ...
wirelessben's user avatar
0 votes
1 answer
162 views

How to set Apache-accessible SELinux policy for EFS mounted user directories?

When I mount my EFS to a user directory, the directory policy becomes system_u:object_r:nfs_t:s0, which is too restrictive - I need it to behave more like a typical user directory, which is ...
HWD's user avatar
  • 111
0 votes
1 answer
2k views

ECS containers on EC2 cannot mount EFS volumes

I have created an ECS cluster backed by an EC2 auto-scaling group and launched a service in it that uses EFS for NFS storage. The service is running in awsvpc network mode so that I'm able to control ...
user1933738's user avatar
0 votes
1 answer
2k views

DHCPv6 address xxxx/128 timeout preferred 140 valid 450

A couple of days ago, I activated the IPv6 for an EC2 instance. But, yesterday the instance was down twice. When checking the syslog file, I found these repeated message: ens5: DHCPv6 address xxxx/128 ...
Budianto IP's user avatar
0 votes
1 answer
2k views

AWS-EC2 100% CPU Utilization

I am curious to know about 2 things below about the AWS-EC2 CPU utilization and CPU Credits. What will happen if my AWS-EC2 instance CPU utilization is constantly 100% and I ran out of CPU credits? ...
Surya H's user avatar
  • 21
1 vote
0 answers
878 views

Instance refresh: "insufficient data to evaluate its health with Amazon EC2"

The instance refreshes for my autoscaling group are taking a very long time due to instances having "insufficient data to evaluate its health with Amazon EC2." However, the instances are ...
Paul Draper's user avatar
0 votes
1 answer
570 views

How could I use single elastic IP for multiple instances (AWS)?

What would be best way to achieve such thing: I have limited amount of elastic ips, and I have bunch on EC2 instances to launch small apps. I have an idea to have load-balancer or an EC2 instance that ...
LuckyLuke's user avatar
  • 103
0 votes
0 answers
503 views

AWS EC2 windows instance 1/2 status check

I converted my ec2 instance running on windows server 2016 from m5.large to m6a.large, type change successful, Problem is: but Instance status checks : failed verified Get instance screenshot, its ...
Teckfrekk's user avatar
0 votes
1 answer
499 views

node in docker in aws instance is running out of memory, why?

My NodeJS application is running inside a docker container on an ec2 instance. It is running out of memory way before the server itself is running out of memory. The container is only able to use ...
tollo's user avatar
  • 103
2 votes
1 answer
409 views

Incredibly slow connection to EC2 instance after moving to another region

I just moved my instance from Frankfurt to N. Virginia, and now I'm getting really slow loading times for my website. The DOM loads quickly, but then I wait over 40 seconds for a 500kb image. This ...
Nikolay Dyankov's user avatar
2 votes
2 answers
3k views

Decrease Size of EBS Volume attached to EC2 Instance

I've created an EC2 instance with some 100 GB initial size, thereafter I realized this much size is not required, I've to decrease the size now. What I tried? Create a new volume with the desired ...
DilLip_Chowdary's user avatar
1 vote
1 answer
44 views

System architecture for storing sensitive data separately without single point of access

We're building a SaSS platform with support for integrations. Each client has multiple integrations. We'd prefer not to store these integration tokens in a centralized location, where there's a single ...
Max Hudson's user avatar
2 votes
0 answers
166 views

AWS CloudWatch Alarm on Max Average CPU from ASG

I am trying to create an alarm in CloudWatch which triggers when any node in a given ASG has greater than 90% average CPU utilisation. I don't want to just do MAX, because we often see short spikes to ...
unclemeat's user avatar
  • 121
5 votes
3 answers
3k views

Windows Server 2019 randomly changes time and date to incorrect values

In the last two months, we have got quite a few issues with the server time and date occasionally changing to some absolute random values. Sometimes it is a few days in the future or past, sometimes - ...
MyUserName's user avatar