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
1 answer
11 views

VyOS on AWS EC2, new IPSEC tunnel won't pass traffic- what am I missing

This is an existing environment that I just stepped into. Running VyOS as a AWS EC2 instance, which handles all of the site-to-site routing for our company. Everything is already up and working. We ...
  • 164
0 votes
0 answers
13 views

Connectivity between two EC2 instances does not work

I try to ping or ssh between these instances (A to B), neither work, both time out. Instance A (i-0e332d1880c8f93ae) - CentOS Instance B(i-0a1e4a76358059ba3) - Debian They share VPC, and the ...
1 vote
1 answer
20 views

Why does `hdparm -t` take so long to produce accurate results on my EC2 instance?

I'm profiling a data-processing program that I wrote and I want to understand the theoretical throughput of the machine I'm on. Specifically, I want to measure what disk read speed my g4dn EC2 ...
  • 121
0 votes
0 answers
10 views

AWS Beanstalk - Website refreshing infinitely during scale up

I have a configuration in my Elastic Beanstalk where the maximum number of instances can be "3" and minimum is 1. When the website is running with just one ec2 instance, it loads without any ...
  • 101
0 votes
0 answers
20 views

How do I remount /home as the ec2-user in Ansible?

I can manually remount /home as the ec2-user by executing these three lines: $ cd / $ exec sudo -i # mount -a How do I do this in Ansible without rebooting? Edit: /home is on a separate volume. No ...
0 votes
0 answers
10 views

Which ec2 instance should I choose for my mongos(query router)?

I am hosting a sharded mongodb on ec2. I am planning on going with m4.large for my shard instances and t2.micro for my config servers. Should I go with m4.large for my mongos(query router) ...
0 votes
1 answer
15 views

How to set Apache-accessible SELinux policy for EFS mounted user directories?

When I mount my EFS to a user directory, the directory policy becomes system_u:object_r:nfs_t:s0, which is too restrictive - I need it to behave more like a typical user directory, which is ...
  • 101
-1 votes
0 answers
14 views

Windows Server Cluster disk

I am building simple test environment on AWS with 2 windows server 2019 nodes in cluster. I would like to add shared disk. Is it possible to use virtual disk? So far I see there is only option to add ...
  • 1
0 votes
0 answers
19 views

AWS set ec2 instance as unhealthy if specific service is down

I have couple of instances part of ASG, these are worker ec2 instances not exposed to the public, there is a systemctl service initialized via user-data, sometimes initializing the service fails for a ...
  • 101
0 votes
1 answer
35 views

ECS containers on EC2 cannot mount EFS volumes

I have created an ECS cluster backed by an EC2 auto-scaling group and launched a service in it that uses EFS for NFS storage. The service is running in awsvpc network mode so that I'm able to control ...
0 votes
1 answer
1k views

DHCPv6 address xxxx/128 timeout preferred 140 valid 450

A couple of days ago, I activated the IPv6 for an EC2 instance. But, yesterday the instance was down twice. When checking the syslog file, I found these repeated message: ens5: DHCPv6 address xxxx/128 ...
0 votes
1 answer
33 views

AWS-EC2 100% CPU Utilization

I am curious to know about 2 things below about the AWS-EC2 CPU utilization and CPU Credits. What will happen if my AWS-EC2 instance CPU utilization is constantly 100% and I ran out of CPU credits? ...
  • 21
0 votes
0 answers
21 views

Instance refresh: "insufficient data to evaluate its health with Amazon EC2"

The instance refreshes for my autoscaling group are taking a very long time due to instances having "insufficient data to evaluate its health with Amazon EC2." However, the instances are ...
0 votes
1 answer
27 views

How could I use single elastic IP for multiple instances (AWS)?

What would be best way to achieve such thing: I have limited amount of elastic ips, and I have bunch on EC2 instances to launch small apps. I have an idea to have load-balancer or an EC2 instance that ...
  • 103
0 votes
0 answers
28 views

AWS EC2 windows instance 1/2 status check

I converted my ec2 instance running on windows server 2016 from m5.large to m6a.large, type change successful, Problem is: but Instance status checks : failed verified Get instance screenshot, its ...
0 votes
1 answer
42 views

node in docker in aws instance is running out of memory, why?

My NodeJS application is running inside a docker container on an ec2 instance. It is running out of memory way before the server itself is running out of memory. The container is only able to use ...
  • 103
2 votes
1 answer
49 views

Incredibly slow connection to EC2 instance after moving to another region

I just moved my instance from Frankfurt to N. Virginia, and now I'm getting really slow loading times for my website. The DOM loads quickly, but then I wait over 40 seconds for a 500kb image. This ...
1 vote
1 answer
33 views

Decrease Size of EBS Volume attached to EC2 Instance

I've created an EC2 instance with some 100 GB initial size, thereafter I realized this much size is not required, I've to decrease the size now. What I tried? Create a new volume with the desired ...
1 vote
1 answer
35 views

System architecture for storing sensitive data separately without single point of access

We're building a SaSS platform with support for integrations. Each client has multiple integrations. We'd prefer not to store these integration tokens in a centralized location, where there's a single ...
1 vote
0 answers
24 views

AWS CloudWatch Alarm on Max Average CPU from ASG

I am trying to create an alarm in CloudWatch which triggers when any node in a given ASG has greater than 90% average CPU utilisation. I don't want to just do MAX, because we often see short spikes to ...
  • 111
3 votes
2 answers
110 views

Windows Server 2019 randomly changes time and date to incorrect values

In the last two months, we have got quite a few issues with the server time and date occasionally changing to some absolute random values. Sometimes it is a few days in the future or past, sometimes - ...
1 vote
0 answers
63 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 ...
0 votes
0 answers
20 views

Amazon ec2 OS upgrade/instance type upgrade

My company is needing to upgrade the OS of our EC2 instances from AML 1 to AML 2 since end of life is 6/2023. We recently released a significantly large add-on to our application, so we are talking ...
  • 1
0 votes
0 answers
14 views

How do I keep NGINX directory ownership after installation on Amazon 2 EC2

I have NGINX server set up as proxy to a rails application. In the main config file /etc/nginx/nginx.conf I've set user to be ec2-user, which is the default user for this instance. Since NGINX server ...
  • 113
0 votes
1 answer
62 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 ...
0 votes
2 answers
34 views

AWS EC2 Free tier data transfer

Does changing t2 micro free tier to unlimited cause also unlimited out internet data transfer?
1 vote
0 answers
41 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 ...
0 votes
0 answers
27 views

Can't run psql backup in user-data script in AWS EC2

I have private subnet for my EC2 instance, I use NAT Gateway for it to access internet. I created user-data script for my EC2 where I've created docker-compose.yml with postgres service defined. After ...
0 votes
0 answers
14 views

Restarting PM2 when the latency of the API it's serving becomes high

I have an EC2 instance running which is housing a nodeJS/GraphQL based API application. The application is managed via PM2. I want to have a setup/configuration which can continuously ping one ...
  • 117
1 vote
0 answers
25 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 ...
  • 11
0 votes
1 answer
32 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 (...
0 votes
0 answers
17 views

Swap memory discrepancy

I want to know the status of swap memory on my system, to understand the same tried different commands, each command thrown different output, could someone help to understand the situation better ...
1 vote
0 answers
44 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 ...
  • 551
0 votes
0 answers
23 views

Reverse proxy for multiple applications and ports

I have X instances of the same application running on X amount of EC2s. The frontend is using port 8000 and it's also consuming messages at port 5671 (rabbitmq). I have A-records (app1.example.com, ...
  • 1
0 votes
1 answer
62 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 ...
  • 107
0 votes
1 answer
25 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 ...
  • 101
0 votes
0 answers
219 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 ...
  • 101
0 votes
2 answers
54 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 ...
0 votes
1 answer
24 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 ...
0 votes
0 answers
61 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 ...
0 votes
1 answer
73 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 ...
0 votes
0 answers
42 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 ...
  • 379
0 votes
1 answer
51 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 ...
  • 111
0 votes
1 answer
29 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 ...
0 votes
1 answer
68 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 ...
0 votes
0 answers
25 views

Intermittent loss of secondary IPs on EC2

We're running multiple web servers on an EC2 with multiple local IPs. We have a bash script that runs at reboot that adds those ips for use. #!/bin/bash MAC_ADDR=$(ip addr show | sed -n 's/.*link\/...
  • 113
0 votes
0 answers
32 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 ...
0 votes
1 answer
71 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?
1 vote
2 answers
355 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 ...
  • 19
0 votes
0 answers
238 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 ...

1
2 3 4 5
131