Questions tagged [aws-ec2]
The aws-ec2 tag has no usage guidance.
76
questions with no upvoted or accepted answers
3
votes
0
answers
66
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 ...
2
votes
1
answer
206
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 ...
2
votes
0
answers
90
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
2k
views
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 ...
1
vote
0
answers
30
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 ...
1
vote
1
answer
236
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 ...
1
vote
1
answer
92
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 ...
1
vote
1
answer
414
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
188
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 ...
1
vote
0
answers
104
views
AWS Ec2 instance (ubuntu) instance not showing elastic ip address
I have allocated an elastic IP address to an AWS Ec2 (ubuntu) instance. But when i am running the 'ip address show' command, it only displayes the public IPV4 address, not showing the Associated ...
1
vote
0
answers
207
views
AWS EC2 - Difference between adding interface via Bota3 vs adding via web interface
Apologies for dupes, I assume this is not novel, but I can't get the phrasing right to get an answer.
I have a lambda python script provided by AWS from this example (python script reproduced below to ...
1
vote
0
answers
122
views
AWS EC2 NGINX SSL Issue after activating the SSL
We have this weird issue on our AWS EC2 instance, when we activate the "AWS SSL Certificate" on that specific EC2 instance it will not work and instead, it will just show the default "...
1
vote
0
answers
116
views
How to spin up AWS computing resource on demand within 10 seconds delay apart from using Lambda?
Upon user request, my application has to run a CPU heavy application that requires 6 CPU processes. To reduce latency and speed up development, I choose a monolith approach. Therefore, I simply put ...
1
vote
0
answers
376
views
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 ...
1
vote
0
answers
701
views
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 ...
1
vote
0
answers
530
views
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&...
0
votes
0
answers
38
views
Install SSL Certificate for Docker Container on EC2
We are running an NGINX Server on a Docker Container which is hosted on an EC2 instance.
Our Domain is registered with Amazon Route 53 but it seems like, there is missing an SSL Certificate on Docker ...
0
votes
0
answers
28
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 ...
0
votes
0
answers
87
views
Got read permissions but not write permissions in aws SFTP in EC2
I'm a bit new to aws and especially SFTP but I'm trying to set up an EC2 instance with SFTP so I can access it with FileZilla and I've set it up and can copy files from it into my own directories but ...
0
votes
0
answers
61
views
Why is EC2 instance store volume not mounted?
I created an AWS EC2 instance of type g5.2xlage with Deep Learning Base GPU AMI (Ubuntu 20.04). This instance type has an instance store volume. After first start, the ephemeral instance store was ...
0
votes
1
answer
29
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
50
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
0
answers
120
views
Why is my worker node kubelet service not starting?. kubelet[8094]: Insecure values: TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256
Following Kelsey Hightower's KTHW on AWS EC2 instances and got to boot strapping the worker nodes and somehow kubelet seems to be fubarred.
NOT USING KUBEADM or DOCKER.
Getting the following error now....
0
votes
0
answers
54
views
Random timeout between ec2 instances in same az
My elastic-based monitoring system will quite often report timeout on an http check where target is the AWS EC2 instance.
Check is performed from another EC2 instance in same region, same AZ, same ...
0
votes
0
answers
152
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
0
answers
97
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
0
answers
51
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
0
answers
6
views
DR Test: How to modify AWS EBS volume to make it "impaired"?
We are designing some disaster recovery tests (ISO 27301) and one of the tests has a branch where the underlying cause is an AWS EBS 'impaired' volume.
Does anyone know how we can 'impair' an AWS EBS ...
0
votes
1
answer
281
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. ...
0
votes
0
answers
70
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
137
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
333
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
15
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
269
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....
0
votes
1
answer
548
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 ...
0
votes
0
answers
93
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
134
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
65
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
350
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
103
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
161
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
252
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
76
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 ...
0
votes
0
answers
37
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 ...
0
votes
0
answers
89
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
320
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
276
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 ...
0
votes
1
answer
1k
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
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 ...
0
votes
1
answer
119
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 ...