Questions tagged [aws-ec2]
The aws-ec2 tag has no usage guidance.
93
questions
0
votes
0
answers
7
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
33
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
33
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 ...
0
votes
1
answer
282
views
The connection to the server 172.31.58.39:6443 was refused - did you specify the right host or port?
I have created 3 nodes on aws ec2. In these three nodes, I have one master node with type t2.medium and 2 worker nodes with type t2.micro
I'm facing an issue The connection to the server 172.31.58.39:...
0
votes
1
answer
35
views
Get AWS role name from EC2 instance list using CLI
AWS CLI requests "ec2 describe-instances" and "ec2 describe-iam-instance-profile-associations" include instance profile in the "IamInstanceProfile" property.
This ...
0
votes
0
answers
10
views
AWS Elastic Compute Cloud EC2 pricing issue
Description
Usage Quantity
Amount in USD
Amazon Elastic Compute Cloud T4GCPUCredits
USD 10.90
↳ $0.04 per vCPU-Hour of T4G CPU Credits
272.513 vCPU-Hours
USD 10.90
Can anyone tell me what is this ...
0
votes
0
answers
42
views
How is "Global-DataTransfer-Regional-Byte" transfer calculated?
I started a EC2 t2.micro instance in Canada(Central) region. I've installed WireGuard and Pi-hole in it. Upon VPN Connection, I did some network test using iperf3 between my computer and the instance....
1
vote
1
answer
61
views
What steps can I take to troubleshoot why my server is not accessible over HTTPS after enabling SSL with Certbot?
I'm looking for assistance in diagnosing and resolving this issue. What steps can I take to troubleshoot why my server is not accessible over HTTPS after enabling SSL with Certbot? Are there any ...
1
vote
1
answer
25
views
Aws workspace can't access website hosted in aws ec2
I have a website hosted in an ec2 instance. It works ok from outside, for example from my home network.
However, i can't access this website from my aws workspace. Both ec2 instance and workspace's ...
2
votes
0
answers
52
views
Unable to connect to AWS EC2 instance public IPv4 using http tcp/80
Referring to an instructional book,
I am setting up an EC2 instance on AWS using an IAM role.
However, when I try to access the URL using the EC2 instance's public IP address, I am unable to establish ...
2
votes
1
answer
62
views
W32Time doesn't respect MaxPosPhaseCorrection settings
I'm having a problem with W32Time service on Windows Server 2019 not respecting the default limit on positive time offsets (MaxPosPhaseCorrection/MaxNegPhaseCorrection = 15 days). The server is ...
0
votes
1
answer
59
views
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 ...
3
votes
1
answer
263
views
AWS NAT Instance Setup
This question was originally posted to stack overflow, they suggested I repost it here (https://stackoverflow.com/questions/76715004/aws-nat-instance-setup).
I am currently learning the AWS cloud and ...
5
votes
1
answer
677
views
AWS server completely shutting down because of the insufficient CPU memory (server-kernel: out-of-memory )
WordPress website(4years old) have been recently migrated from shared server to the AWS server (2cpu, 4GB ram,80 SSD).After migration website was working fine but in the night between 2am and 6am the ...
0
votes
0
answers
32
views
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 ...
0
votes
0
answers
41
views
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 ...
0
votes
2
answers
32
views
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 &...
0
votes
1
answer
83
views
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 ...
0
votes
1
answer
102
views
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 https://docs.aws.amazon.com/...
0
votes
0
answers
50
views
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
81
views
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) ...
0
votes
0
answers
93
views
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 ...
0
votes
0
answers
47
views
Can access jenkins (ip:port 22) but not ssh
Before adding a rule, ssh was working fine. For Jenkins, I added the custom tcp security group rule (8080) so i could access it. Then jenkins was working fine. Now, ssh does not.
Security Group rules ...
10
votes
4
answers
6k
views
ClamAV detected Kaiji malware on Ubuntu instance
Today clamAV scanned my AWS instances and detect 24 infected files on each.
It looks like false positive due to several reasons:
All these files are created in October 2022 (why were they detected ...
0
votes
1
answer
29
views
How to import an aws_spot_instance_request into Terraform?
I'm looking for a way to import an aws_spot_instance_request into Terraform.
I already made a Spot Request on AWS console, now I would like to put this request on my code. How can I do that?
In the ...
0
votes
0
answers
29
views
AWS WAF create custom rules
Attackers are repeatedly using the same off-the-shelf exploit to attack my server. It doesn't work because my server is patched and I have some server side modules to prevent the exploit.
However I ...
1
vote
1
answer
72
views
I can log into my AWS/EC2 instance but my developer can't
I created a new EC2 instance, generated a key with PuTTYgen and was able to successfully log in on my machine using Pageant and PuTTY as well as WinSCP. My security group is open to all IPs, but my ...
0
votes
0
answers
51
views
AWS AppStream is unable to push session script logs to s3
I have configured session scripts to log stdout and stderr to s3 bucket as described in https://docs.aws.amazon.com/appstream2/latest/developerguide/use-session-scripts.html#enable-S3-bucket-storage-...
0
votes
0
answers
143
views
Why does EC2 allow QEMU/KVM 32 bit VMs to run, but not 64 bit?
The setup is EC2 with 8 cores and 32GBs of memory running Ubuntu 22.04 Desktop. Virtual Machine Manager has been installed. I downloaded 32 bit and 64 bit Windows 10. I'm able to create a VM using 32 ...
0
votes
1
answer
114
views
Can't access my ec2 public ip outside rdp
I'm using IIS to host my app and I use port 80, on my RDP if I enter the IP address it redirect me to my app but if I use the IP address outside RDP is not working. I checked with XAMPP and is working ...
1
vote
1
answer
217
views
AWS EC2 EBS: btrfs partition and FS automatically resized by just increasing the EBS volume size?
I had to expand the size of an EC2 EBS root volume that uses btrfs (Fedora 38 Server), so I did the following:
Stopped the EC2 instance
Expanded the EBS volume via the EC2 console
Started the EC2 ...
1
vote
0
answers
130
views
AWS EC2 auto-scaling Windows server: how to set the hostname ("computername")?
I have an elaborate framework for autoscaling UNIX servers to configure their hostname with a script on launch (startup) using an NFS (EFS) where they look up what their hostname should be, then set ...
0
votes
1
answer
556
views
How to connect to AWS EC2 serial console without access keys
My goal is to connect to the serial console of an EC2 instance, using SSH, e.g. from a laptop, using the best modern security practices in setting it up.
The AWS documentation (https://docs.aws.amazon....
0
votes
1
answer
107
views
AWS T3 Linux VM becomes unresponsive when CPU reaches 80%
I am running a t3 small instance on AWS. Whenever its CPU usage reaches 80%, it becomes unresponsive, and we are unable to access it via SSH. After stopping and starting the instance, everything comes ...
0
votes
0
answers
195
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 ...
6
votes
3
answers
4k
views
How to install and configure Redis server on Amazon Linux 2023 (AL2023)?
Amazon Linux 2023 is loosely based on Fedora 34, 35 and 36 as per aws:
https://docs.aws.amazon.com/linux/al2023/ug/relationship-to-fedora.html
However redis package is not available in AL2023, instead ...
0
votes
1
answer
84
views
How to Include Elastic IP on EC2 on my VPN
I am able to ping and access SSH on my EC2 using Private IPs.
However I want to access the SSH using the Public IP ( elastic IP ).
Is that possible?
note: my VPN step up and EC2 is under 1 VPC
I have ...
0
votes
0
answers
72
views
Can't connect to cognito using the AWS CLI
I have created an instance running bare AL2023. This instance has an IAM role asociated which has a single policy
{
"Version": "2012-10-17",
"Statement": [
...
0
votes
1
answer
161
views
Dynamic propagation from AWS SSM Parameters (to EC2 ASGs etc)
In AWS, can a Systems Manager Parameter Store parameter (with the aws:ec2:image data type) be referenced directly in the AMI field of a Launch Template used by an EC2 Auto Scaling Group, so that the ...
0
votes
1
answer
1k
views
How to setup a NAT Gateway together with a VPN in AWS
I have a VPN setup following this guide. I connect to the VPN from my Mac and I can confirm that both, my Mac as well as EC2 instances do have access to internet. However, for this to work, all my EC2 ...
0
votes
1
answer
482
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 ...
-2
votes
1
answer
160
views
How could I connect to AWS Windows EC2 using RDP?
I have some question about connect using RDP with Windows EC2.
I create two EC2 instances: one is Windows 2016 platform, and the other one is Arch Linux.
I also create one VPC with allow any ...
0
votes
0
answers
119
views
AWS poor performance compared to DigitalOcean's
Why is my Apache2 server with PHP-FPM experiencing significantly lower performance on AWS EC2 instances compared to DigitalOcean Droplets? Despite similar hardware specifications and configurations, ...
0
votes
0
answers
83
views
Can you specify the SSM parameter store as a target in an AWS Security Group egress rule?
I would like to tightly restrict outbound network level access from groups of EC2 instances. For these instances, I need to allow access to the Parameter Store. I also need to allow access to S3. ...
0
votes
1
answer
400
views
Can't connect from AWS EC2 instance to AWS SES endpoint
Disclaimer: my AWS networking skills are basic.
I have an EC2 Windows server instance in a private subnet. I connect via a VPN. FOR TESTING I put it in a Security Group that allows all IPV4 TCP ...
0
votes
1
answer
176
views
OpenVPN on AWS (works in NAT mode but doesn't work in Routing mode)
I have a brand new VPC (10.0.0.0/16) with 3 public subnets (pointing to an IGW) and 3 private subnets (with a NAT GW in each). I have deployed an OpenVPN appliance in the public subnet and configured ...
0
votes
0
answers
37
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 ...
0
votes
0
answers
87
views
Calling API from Https website to AWS
I have a website with https consider https://example.com which wants to call an API from an AWS EC2 instance consider http://ec2.##.##.##/get-users. I am getting Connection Refused when I do so but in ...
0
votes
0
answers
109
views
aws t3.small nginx gzip response time is slow?
I am having php web application on t3.small ec2 instance.
webserver : nginx
gzip on;
gzip_vary on;
gzip_min_length 10240;
gzip_proxied expired no-cache no-store private auth;
...
0
votes
1
answer
132
views
AWS storage slow simultaneous reads
We are finding that using AWS file storage (EFS or EBS using GP2 or GP3) from an EC2 instance is very slow when doing simultaneous reads. Here's an example:
I'm reading 30 binary files into memory, ...