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
8 views

Randomly can not resolve host on web server running on ec2

I have a ec2 server running nginx inside a docker container that uses lets encrypt for https. Randomly for extended periods of time (roughly 10min - 1hour) the host name can not be resolved when ...
  • 1
0 votes
0 answers
16 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#...
  • 125
0 votes
0 answers
14 views

publish over ssh plugins in jenkins shows error post build

SSH: Remote root is not absolute, getting absolute directory from PWD SSH: cd [/home/ansadmin] SSH: OK SSH: mkdir [] SSH: FAILED: Message [] SSH: Disconnecting configuration [] ... ERROR: Exception ...
0 votes
1 answer
41 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 ...
0 votes
1 answer
49 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 ...
0 votes
0 answers
23 views

How to port forward public IP of an Ubuntu 22.04 AWS EC2 VPN Wireguard Server Instance to a VPN Wireguard Client

I am running an Amazon EC2 Ubuntu 22.04 Instance, which is acting as a Wireguard server. I have a Wireguard client machine (also running Ubuntu 22.04) connecting to the EC2 WG Server instance ...
  • 63
0 votes
1 answer
53 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 ...
-1 votes
0 answers
34 views

Unable to browse the EC2 Windows 2016 VM in the normal browser and in Incognito Window

New to AWS. I have created an EC2 Windows 2016 Server with the below Security Inbound Rules: Installed the IIS Server after logging using RDP. Copied the Public DNS URL and pasted it in normal ...
  • 9
0 votes
1 answer
13 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 ...
0 votes
0 answers
28 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 ...
  • 133
1 vote
2 answers
36 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 ...
  • 121
0 votes
1 answer
39 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 ...
-2 votes
0 answers
26 views

error getting the list of sites from the target environment the username or password is incorrect - updated

I am hosting new ADC in AWS and receiving this error (error getting the list of sites from the target environment the username or password is incorrect). I am able to ping to PDC.
0 votes
0 answers
13 views

How is the correct MTU used for connections through an IGW on EC2

If you bring up a couple of default image VMs in the default VPC in EC2, they will generally have their interface MTU set to 9001. If you sent TCP traffic between those two instances using their ...
  • 573
0 votes
0 answers
16 views

EC2 server losses internet connection and application fails to send email, sms and even yum updates

I have 5 EC2 servers in the same VPC and all of a sudden yesterday, all of my applications started failing to send email and sms. So I tried doing git pull of my project it also timed out. Then tried ...
0 votes
0 answers
21 views

git clone t2.micro new or existing instance not created git repo folder , shown error. fetch-pack: invalid index-pack output

I already have a t2.micro instance, but the git clone is t2.micro, and it was successfully cloned without error. fetch-pack: invalid index-pack output. I tried git clone again with another newly ...
0 votes
0 answers
52 views

EC2 with a Caddy + Gunicorn setup sporadically unreachable

I have an EC2 instance that runs a Django via gunicorn, in which Caddy sits on top of. The domain is hosted in Route53 with an A record pointing to the IP address of the instance. Here's what I ...
  • 1
0 votes
0 answers
27 views

Cannot establish an IPsec site-to-site VPN between an EC2 instance and a SonicWALL firewall

I'm trying to establish a site-to-site IPsec VPN between an EC2 instance running StrongSwan and a SonicWALL firewall. I've tried a lot of different configurations, but currently I have this at the EC2 ...
0 votes
0 answers
17 views

Can the Windows built-in VPN server be used in EC2?

I have a Windows Server 2019 VM in AWS EC2. I'd like to have a VPN server on it so I can connect to it from my dev machine and run a non-secure protocol across it. I've got the PPP RAS adapter ...
1 vote
3 answers
74 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. ...
0 votes
2 answers
121 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-...
0 votes
0 answers
44 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 ...
0 votes
0 answers
12 views

EC2 instance crashing when retrieving many files from S3

I have a very annoying problem with my EC2 instance. I have a ubuntu EC2 instance and in a Python Notebook cell I do a loop for retrieving many files from s3 (actually not that very much, around 300 ...
  • 1
0 votes
1 answer
19 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 ...
  • 1
0 votes
2 answers
32 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 ...
  • 162
0 votes
1 answer
40 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 ...
  • 162
0 votes
0 answers
31 views

Configuring HAProxy on EC2 to listen on 0.0.0.0 then using security group to whitelist IPs to DB in private subnet

Right now I have a VPC with an EC2 instance in a public subnet and a Redshift DB in a private subnet, allowing traffic inbound from the EC2 instance. My company does not use a traditional intranet ...
  • 101
0 votes
0 answers
28 views

how to determine specific website from PID?

I'm running a Linux2 webserver on Amazon EC2 which is hosting a number of (mainly wordpress) websites. Every day at about the same time the server CPU jumps to run at 100% CPU for about an hour. Using ...
  • 113
0 votes
0 answers
15 views

How do I define Suspended Processes in an Autoscaling Group in AWS CloudFormation?

We have a cluster of servers that need specific Elastic IPs, so we don't want the Autoscaling Group to automatically replace them when they fail healthchecks. We have accomplished this by disabling ...
  • 1
0 votes
1 answer
41 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 ...
0 votes
0 answers
32 views

Cannot mount EBS made using another EC2 instance

I previously made an Amazon EC2 instance and stored some data onto an elastic block storage volume (150 GB sc1). I have since detached the volume and attached it onto another EC2 instance. However, ...
0 votes
0 answers
19 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 ...
1 vote
1 answer
57 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 ...
  • 381
0 votes
0 answers
55 views

EC2 - rails - Docker - NGINX Unable to proxy_pass redirect to localhost:3000

I have an EC2 instance running Ubuntu 20.04. Within this ec2 instance I have 2 docker containers, one running a NGINX server and another one running a rails application. For the NGINX server which Im ...
0 votes
0 answers
22 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 ...
  • 1
0 votes
0 answers
78 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 ...
0 votes
0 answers
18 views

Stuck in CodeDeploy EC2 termination hell

I have a situation where a CodeDeploy artifact is bad and has a broken deploy script. So: EC2 Autoscale Group starts a new EC2 instance. CodeDeploy deploys to that instance. The deploy fails. EC2 ...
0 votes
0 answers
21 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 ...
0 votes
1 answer
145 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....
0 votes
0 answers
199 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 ...
0 votes
0 answers
20 views

Cannot connect to EC2 Instance with ssh using MyIP

I was trying to connect to an ec2 instance using ssh , its working when source ip is 0.0.0.0/0 , but I can't connect when I change it to My Ip (I am using macOS).
0 votes
0 answers
122 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 ...
  • 29
0 votes
0 answers
44 views

AWS Instance Scheduler - turning instances off during holidays - is there a simple method?

With the end of year holidays coming up I'd like to schedule EC2 instances in a development environment to be turned off from say 20th December 8am to 5th Jan 5am. I'd also like to turn them off for ...
  • 31.2k
1 vote
1 answer
58 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. ...
0 votes
1 answer
35 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 ...
0 votes
0 answers
42 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 ...
0 votes
0 answers
174 views

Using socket io with nginx and AWS EC2 instances

I am running into an issue still with my socket io client not connecting to my backend. I have looked through different questions regarding websocket and containerization in the cloud but I have yet ...
0 votes
1 answer
61 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 ...
0 votes
0 answers
96 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 ...
  • 103
0 votes
0 answers
47 views

Is It Possible to Make an EC2 Instance Part of a VPN Protected by Global Protect

What am I running? EC2 instance Ubuntu 22.04 with a static elastic ip address The instance has only one network interface, whose details say it is an Elastic network interface. (I believed every ...
  • 145

1
2 3 4 5
131