Questions tagged [aws-ec2]

86 questions
0
votes
0 answers

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 screenshot Even after removing the custom tcp…
0
votes
1 answer

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 Terraform documentation there is no mention how to…
Arrow Root
  • 102
  • 11
0
votes
0 answers

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 am wandering how I can get the AWS WAF to block…
Huw Evans
  • 101
  • 1
0
votes
0 answers

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-session-script-logs &…
0
votes
0 answers

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 bit Windows that successfully boots and installs.…
Bob Smith
  • 15
  • 3
0
votes
1 answer

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 on same port( not same time) and I can access it…
Mega
  • 101
  • 2
0
votes
1 answer

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…
David
  • 1
  • 1
0
votes
1 answer

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 back online. Here are the things I have…
0
votes
0 answers

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 reachability check failed" and I was not able to connect to…
0
votes
1 answer

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 already added the Public IP to VPN Authorization…
Choolo
  • 1
0
votes
0 answers

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": [ { "Sid": "VisualEditor0", "Effect": "Allow", …
curial
  • 161
  • 1
  • 2
0
votes
1 answer

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 new EC2 instances will automatically start with…
benjimin
  • 121
  • 3
0
votes
1 answer

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 instances need to have a public static v4 IP.…
0
votes
1 answer

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 console. I have a VPC with IPv4 CIDR 172.31.0.0/16…
0
votes
0 answers

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, the server on AWS is showing higher latency and…