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
1 vote
0 answers
530 views

Is it bad idea that all user and all devices connect to one WireGuard VPN interface?

I have few knowledge for network, I need some basic advice. On my business domain, users is facility manager or system installer. There are not many users and they can have some responsibility for ...
hando han's user avatar
0 votes
1 answer
688 views

Using Crontab to run a shell script with SSH

I’m trying to use a cronjob to run a shell script on my EC2 instance, which SSH’s to a server to get a mongodump of a database and restore at a given specific time without me having to login. I’ve ...
vincecalpari's user avatar
0 votes
2 answers
169 views

AWS EC2 Free tier data transfer

Does changing t2 micro free tier to unlimited cause also unlimited out internet data transfer?
davis1011001's user avatar
1 vote
0 answers
225 views

How to open communication PYTHON socket with a SERVER SOCKET on AWS EC2 to a CLIENT SOCKET on my local pc?

Sorry my english is not good I want to established connexion from my client socket on my local pc to a host server socket on AWS EC2 instance. I'm trying to follow suggestions from here and code from ...
Citoyen x14's user avatar
1 vote
0 answers
119 views

Can't SSH to ec2 instance on shared subnet

I have a single VPC with one internet gateway and some subnets that are shared across multiple AWS Organization accounts using RAM. The VPC is protected with a Security Group that is managed by ...
somboo's user avatar
  • 11
0 votes
1 answer
186 views

What Could Cause CloudFront Request To Spikes Once Per Day From Linux User Agent with same IP?

Setup is: cloudfront -> load balancer -> ec2 server CloudFront logs shows the request are coming from these IP's and User Agent. c-ip = 52.2.212.237 44.207.101.129 cs(User-Agent) = Mozilla/5.0 (...
Jesse P's user avatar
1 vote
0 answers
712 views

kswapd0 jumps near 100%, freezes an EC2 t2.micro instance

I have an EC2 t2.micro instance that I use as a test instance for a web app, OS: Ubuntu 22.04.1 LTS the CPU consumption of kswapd0 the process jumps near 100% once in a while, causes a freezes of the ...
Max L.'s user avatar
  • 561
1 vote
1 answer
1k views

Why do i need to restrict permissions on a PEM key?

I have a .pem key file that i use to ssh to my ec2 server. I've moved this key file to an encrypted external SSD disk. This has caused the owner of the pem key to be set to 'everyone'. When i try to ...
Maurice's user avatar
  • 137
0 votes
1 answer
193 views

Trouble with data synchronization and writable per-user subdirectories using EFS

I used this EFS walkthrough to mount my EFS and enable writable per-user subdirectories on my EC2 instance. According to the documentation, All files and subdirectories the user creates in their home ...
HWD's user avatar
  • 111
0 votes
0 answers
1k views

Permission denied (publickey) - bitnami at AWS (Wordpress site) - Connecting with PC

I face following issues when trying to connect from my PS using either PowerShell or Cygwin to AWS on which my Wordpress site is hosted (Bitnami). (I simply what to log in to the server either this ...
Dantes's user avatar
  • 101
0 votes
2 answers
229 views

Is This the Correct Way to Setup AWS Private Subnet -> NAT -> Internet

We want our internal private EC2 instances to have access to the internet so they can download software and install security patches. Of course, out of the box, your private subnet servers will not ...
YoungDinosaur's user avatar
0 votes
1 answer
30 views

Move Services From Servers in Aws

Could anyone advise the best method(s) to move service from one EC2 instance to another? For example Test-dev we want to spin up and replace with TEST (server) but we want to get CRON services and ...
samtech 2021's user avatar
0 votes
0 answers
153 views

EC2 instance DNS resolving issue

How do I identify the EC2 instance causing DNS (my website) resolving errors? I have some instances in my VPC, one of them is creating an error, I did not enable monitoring for this VPC and the ...
samtech 2021's user avatar
0 votes
1 answer
2k views

How do I change (upgrade) my Elastic Beanstalk instance type?

My current Elastic Beanstalk environment is using the "t2.micro" instance. Recently, my website is getting a lot of traffic and it is not been able to handle CRON jobs. The instance is ...
Navneet Pratap's user avatar
1 vote
1 answer
290 views

In AWS what is threadhold value for Average write latency for EBS volume GP3

I have a EBS volume with Average write latency at about 3 and above. This EBS had the following details Size 1000GB General Purpose SSD GP3 IOPS 3000 Throughput 125 Is 3ms/op very high? Would ...
kumar's user avatar
  • 339
1 vote
1 answer
1k views

EC2 instance won't recognize IAM role?

I'm trying to download ECR images on my EC2 instance without having to provide a credentials file. So I created a role with the policy AmazonEC2ContainerRegistryReadOnly and attached to my running ...
rodorgas's user avatar
0 votes
1 answer
52 views

How to check if Route53 will speed up my website?

I have an aws ec2 instance in N.Virginia, an Ubuntu machine with everything inside (mysql as well as apache). Basically all these while, I'm running it on one instance alone, with just image backups ...
Patrick Teng's user avatar
0 votes
1 answer
589 views

Vagrant : how to create a box from aws ami?

I see vagrant as a great tool for testing and I am surprised the aws plugin (here https://github.com/mitchellh/vagrant-aws but which seems deprecated) is here to instanciate ec2 and not copy same ...
user avatar
0 votes
0 answers
178 views

Why do clients fail to connect to EC2 Application Load Balancer sometimes?

Background I have created an dual stack ec2 application load balancer and have configured an A DNS record to point to that application load balancer. I have an Android/iOS app that connects to that ...
psychosk's user avatar
0 votes
1 answer
442 views

aws ec2 instance AMI backup with reboot

Can we start using the ec2 instance, if ec2 instance AMI backup with reboot option is used and AMI backup is still in process, But the ec2 instance came up after reboot?
Sandeep Kumar's user avatar
1 vote
2 answers
432 views

My instance is accessible from ipv4 address and public DNS. I want it to be accessible from domain name only

I just installed WordPress on Amazon AWS (EC2 Instance) The problem is that my instance is accessible to public from both ipv4 address and domain name i asssigned to it through DNS. Like for testing ...
Wp User's user avatar
  • 19
0 votes
0 answers
1k views

AWS - PUTTY "No supported authentication methods available (server sent :publickey)" After change instance

I got the classical problem "No supported authentication methods available (server sent :publickey)" after that I changed the instance type (from t2.micro to t2.xlarge). I setted Putty up ...
Bryan 's user avatar
0 votes
1 answer
586 views

AWS EC2 CentOS 7 Port 80 blocked despite correct rules

I have a web server instance running apache on aws, It stopped working suddenly. I've checked port in the security group and both port 80 and 443 are open both for ip4 and ip6. I have no firewall ...
Breezer's user avatar
  • 101
-3 votes
1 answer
673 views

I lost my AWS EBS volume completely. What are the odds of that?

I recently lost my EBS volume, leaving the data unrecoverable. I already knew that AWS isn't exactly concerned about the convenience of their customers and thus the risk of this happening was pretty ...
Ethan's user avatar
  • 3
0 votes
1 answer
47 views

Nginx - https://www not 301 redirecting

I am moving to a new domain and have set up 301 redirects on my ec2 instance. Currently I have the following: server { listen 80; server_name olddomain.co.uk; return 301 $scheme://www....
Talktomegoose's user avatar
0 votes
0 answers
89 views

Using Nginx as for api gateway

I have a react node mongodb website that has one route and basically one post request for collecting forms. I have been at this step for a few hours. I have gotten the build folder to be read, but ...
Mickey Gray's user avatar
0 votes
1 answer
1k views

ECS service is not starting tasks

Hello I am using aws ecs and terraform to deploy a few containers. I am trying to create an ecs cluster with ec2 instances and in each instance I want to run two nginx containers. I have a load ...
Hassan Kamran's user avatar
3 votes
1 answer
161 views

Migrating on-premise server with RAID1 to EC2

I have an on-premise physical server running Debian 10 that I would like to migrate to AWS EC2. The server storage consists of two 1TB HDD drives on /dev/sda and /dev/sdb that have been set up as a ...
Kaivosukeltaja's user avatar
0 votes
1 answer
5k views

What causes reachability check failure on EC2 instance?

I have an EC2 instance which is stopped at the end of each working day, and then started again the following morning via a Control-M job. Most instances start with no problems, however occasionally we ...
jh12298's user avatar
2 votes
1 answer
796 views

Ec2 Metadata updgrade from imdSV1 to imdSV2 causes 403 and 401 error- kube2iam

I recently updated my ec2 instances to use imdSV2 but had to rollback because of the following issue: It looks like after i did the upgrade my init containers started failing and i saw the following ...
Contraboy's user avatar
0 votes
1 answer
98 views

AWS EC2 instance reachabilty check failed for new instance with older Plesk Volume

long story short. 5 year old Plesk environment (always updated) on an EC2 instance for some reason the instance has two volumes attahed (root volume sda1 and a second sdf) the mount point of the ec2 ...
Matt's user avatar
  • 43
0 votes
0 answers
416 views

Problems with connection refused setting up ssh tunnel to aws ec2 instance

I'm trying to set up a raspberry pi to run on my desk and I'd like to remote into it from work via a tunnel. To do this I've setup an EC-2 instance that I'll use similar to ngrok to create tunnels to ...
iggy12345's user avatar
  • 101
1 vote
2 answers
1k views

AWS application can't connect to external API without public IP address

I have a Django application that's running on AWS EC2. That application occasionally makes requests to an external API (stripe.com). I tested it extensively and it passed all my tests. When I deployed ...
Fabio Araujo's user avatar
2 votes
2 answers
2k views

AWS EC2 /dev/nvme1n1 mounted without partition table

I have an EC2 server on nitro system (c6g.2xl) where I have attached a 2nd volume. This is a web hosting environment and the disk is regularly increased in size. For some reason I accidentally mounted ...
jdog's user avatar
  • 131
0 votes
1 answer
94 views

Move an Elastic IP from a VPC to Classic EC2

I know it is possible to "Move to VPC Scope", but is it also possible to move back from VPC to Classic EC2?
Mark Hansen's user avatar
0 votes
1 answer
649 views

Can't connect from bastion host to private instance

I have a bastion host that I'm trying to use to SSH to a private instance. The instances are in different AZs (with different subnets). The VPC has a CIDR of 10.0.0.0/16. The bastion host subnet has ...
jordaniac89's user avatar
-1 votes
1 answer
128 views

No instances available for AMI

I have an old app running on EC2 classic box, and need to migrate it to a VPC. The old instance type is m1.small (Intel arch). I created an AMI for the server running the app, and tried to launch a ...
Shef's user avatar
  • 253
0 votes
1 answer
1k views

which AMI image we have to use for ECS cluster as Amazon ECS-optimized AMI is getting depricated

I saw this document which says Amazon ECS-optimized AMI is getting depricated and they are not going to maintain this any more. So if I want to create a new ECS cluster and use ec2 instad of fargte ...
Naggappan Ramukannan's user avatar
0 votes
1 answer
329 views

How can I find the list of instance types that do not require ENA and the list of AMIs that support ENA?

I have this Terraform file - terraform { required_providers { aws = { source = "hashicorp/aws" version = "~> 4.23" } } required_version = ">= ...
Lone Learner's user avatar
0 votes
2 answers
2k views

What are the differences between AWS EC2 t1 and t2 instances?

When I try to create a new EC2 instance, there are many instance types to select from: t1.micro, t2.nano, t2.micro, etc. To understand the differences between t1, t2, t3, etc. I go to https://aws....
Lone Learner's user avatar
0 votes
1 answer
2k views

How to install mcrypt for PHP 7.4 on Aws Linux 2?

I'm trying to install mcrypt with yum install php-mcrypt but run into this dependency error: Error: Package: php-mcrypt-5.4.16-9.el7.x86_64 (epel) Requires: php(api) = 20100412-64 installed: php-...
Xander's user avatar
  • 101
0 votes
0 answers
452 views

Calico deployment not saving tolerance for master node

I was trying to setup a Kubernetes Cluster using Amazon EC2 and Kubeadm. I created a 't2.large' EC2 instance based on Ubuntu 18.04 AMI. Setup kubeadm, kubelet, kubectl and docker as the container ...
arjunbnair's user avatar
0 votes
0 answers
143 views

Launch new EC2 instance using shared private AWS AMI

I have a website running on t2.micro ec2 server (A). While it is running I created its AMI and shared it with another AWS account B. I went to the B AWS account and tried to launch an EC2 instance ...
paul's user avatar
  • 103
0 votes
1 answer
2k views

Cannot ping EC2 instance from AWS CloudShell

I cannot ping the private IP either from the AWS CloudShell or another EC2 instance: [cloudshell-user@ip-10-0-161-171 ~]$ ping 10.1.0.10 ping: socket: Operation not permitted Ping is enabled on the ...
CPI's user avatar
  • 1
1 vote
0 answers
201 views

How long should EC2 hibernation take?

I've been experimenting with enabling hibernation on m5a.2xlarge machines (32G RAM, 8vCPU, up to 2880MB/s EBS bandwidth), and my observation is that the machines fairly consistently take upwards of 20-...
Seth Nelson's user avatar
0 votes
0 answers
494 views

Create Windows 10 AMI for EC2 AWS

I have case to create AMI based on windows 10 OS, the AMI file will be used on AWS ec2 to run some our 3rd party programs for client. I have tried to follow several tutorial and guidelines from google ...
Ahmad_Green's user avatar
0 votes
1 answer
192 views

Can I trigger events off of outbound HTTP requests from an EC2 instance?

Imagine an old app. Let's say, hypothetically, that it is 9 or 10 years old, it has enormous amounts of tech debt. It makes thousands of API calls to 3rd party APIs, and stores some of the data in the ...
charlottesville's user avatar
0 votes
3 answers
1k views

Deleted my Home folder now I cant remotely connect via SSH

I accidentally deleted the Home directory with sudo rm -r ~, when I try reconnecting the ssh returns ssh -v key.pem ec2-user@PublicIP-address ec2-user@PublicIP-address: Permission denied (publickey,...
Polaroid's user avatar
0 votes
1 answer
187 views

Setting up Perforce with AWS - "Rollback Complete" on stack?

Alright, I am following this tutorial to set up Perforce HelixCore with AWS. I've followed all of part 1 "Define your AWS environment" verbatim, however my parent stack's status went from ...
UserDude's user avatar
  • 101
0 votes
1 answer
107 views

AWS EC2 instance cannot see another instance on a specific port

I have created two EC2 instances using CloudFormation - one for the Apache web-server, another one for the PostgreSQL DB. For some reason the web-server cannot telnet into the DB instance on port 5432 ...
altern's user avatar
  • 195