Questions tagged with Amazon EC2
Content language: English
Sort by most recent
Hi all!
We have a t3.2xlarge EC2 instance running Windows Server 2019 in the Europe (Frankfurt) region. We want to downsize it to a t3.xlarge, but this is refused with the following error message:
"Failed to modify instance type for instance xxxx.
The instance configuration for the AWS Marketplace product is not supported. Please see the AWS Marketplace site for more information about supported instance types, regions, and operating systems."
I can succesfully change it to a m5.xlarge, so I don't understand why not to a t3.xlarge.
I'm doing this from the web interface.
I've looked into different documentation pages about this type of instances but cannot find this limitation.
Any advice would be welcome. I thank you in advance.
Hello,
I have a g4dn.4xlarge running Ubuntu and DCV:
- Ubuntu 22.04.2 LTS
- DCV Viewer: 2022.2 (r5125)
- DCV server version 2022.2 (r14126) - 850b597893b7e9e1fa41688e06be0e9561708670
I'm trying to use multiple displays on my DCV client running on Mac OS Monterey. When I do View -> Fullscreen all Monitors, the DCV window seems to try to go to fullscreen on the monitor it's active on, then automatically exits fullscreen, but nothing happens on the other monitor.
DCV gives me this error:
> Exiting fullscreen mode: Server
and client monitor layout do not
match.
Server: [0,0 1776x984]
Client: [0,0 1440x900],
[1440, 106 1920x1080]
I saw this page:
https://www.ni-sp.com/support/nice-dcv-tips-and-tricks/#h-how-to-enable-multi-monitor-on-nvidia-gpus
And the section: How to enable multi-monitor on nVidia GPUs. I followed the instructions there but still can't get multiple displays working.
I'd be grateful for any guidance.
Thanks
Ean
I've deployed two containers, one for my frontend which is react, and another for my flask backend. I run them with docker-compose file which specifies the necessary instruction for the communication.
The workflow is working well on my local host, but on ec2, the front is not connecting or sending any requests to the backend.

Hi :)
I am currently trying to resolve an issue with our ECS EC2-based cluster. Our Task definitions utilize the container-level soft CPU limit (set to 50 CPU units), but dont utilize the hard CPU limit from task-definition level. In our case we have more than 2000 services running, each one with a single task. These tasks have new revisions being re-deployed at a very high rate and at the same time, and upon startup they often reach levels of CPU usage above 1000%. This causes the whole EC2 instances to become unresponsive, resulting in a need to restart the whole machine. This we have solved with an alarm and a lambda for quickly rebooting failing, unresponsive instances.
But this is not a solution, only a temporary fix. What we would like to achieve is to somehow limit the CPU usage of each task to not exceed the soft limit by factors of 10 or more. I have found a way to do it using the hard CPU limit, but this solution is also not great, mainly for the following reasons:*
1. Our tasks even with the soft limit use at most 50% of this reservation, but the hard limit's minimum value for ECS with EC2 is 128 units (compared to current 50)
2. The hard limit automatically increases the reservation value for the chosen task, meaning that setting the limit to 128 for all 2000+ servcies/tasks would require us to host more than double the amount of EC2 machines, without an actual gain, as our cluster's usage right now hangs around 5-10%.
So my question is, is there a way to somehow limit the maximum cpu usage of each task/container without using the task-level hard limit? Our EC2 machines are running on Ubuntu
Is there a way to pre-configure an instance type change for an EC2 instance so it happens automatically after the next reboot? Kind of like changes to RDS can set to be executed at the next maintenance interval. The instances are not in an Autoscaler group and they're all one-of-a-kind, various types / AMIs / OSs and whatnot... a CLI option would be amazing, but if I have to click through all of them, so be it.
Thanks,
Marc
Hey!
I'm pretty new to AWS and Linux, and I'm trying to learn, so please bear with me as I know this probably is a noob question.
I'm trying to SSH into my Linux EC2 instance on my Windows pc using cmd, and this is the error I get:
Load key "linuxmc.pem": Permission denied
ec2_user@ec2-3-110-105-158.ap-south-1.compute.amazonaws.com: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
Any ideas on how I could fix this? Sorry again if it's a dumb question, but I wasn't able to find the solution after a lot of googling.
Thanks.
Hello all,
I'm trying to connect to an EC2 instance deployed in a Private subnet through a Network Load Balancer (NLB).
The goal is to connect through the NLB on different TCP and UDP ports.
In our company for security policies we cannot directly expose an EC2 instance with public IP, so we have to go through an NLB.
I've looked online for so many solutions, but they often talk about ALB or ELB, and no one discusses the case of UDP ports. I have been trying for months without success.
I have tried several approaches, but in all of them something does not work as I would like.
In all the ways I tried, I made sure that:
1. there is a NAT Gateway for instances in private subnet.
2. there is an Internet Gateway for NLB in public subnet.
3. NLB is Internet-facing and in the public subnet
4. Route tables public subnet: 0.0.0.0/0 -> IGW and 10.10.0.0/16 -> local
5. Route tables private subnet: 0.0.0.0/0 -> NAT and 10.10.0.0/16 -> local
6. security group of EC2 instance admit connection on requested port from all sources (0.0.0.0/0)
7. NACL's of Subnets allow all traffic on 0.0.0.0/0
10.10.0.0/16 is the CIDR of my VPC.
My tries:
1. NLB with Elastic IP and EC2 Instance in private subnet: I can connect to the instance with TCP ports, but I can't create targets and listeners that uses UDP ports (error Network Load Balancers used with AWS PrivateLink cannot have TCP_UDP listeners.).
2. NLB with IP "Assigned by AWS" and EC2 Instance in private subnet: I try to connect in both TCP and UDP, using NLB's DNS, but I always get "Timeout" error, I can't get to EC2 instance. Here, however, I could create targets and listeners that uses UDP ports.
Could you help me understand how to achieve the goal? Is there any support (even paid support) to get an answer?
Thank you
Best Regards
Davide
The following link is helpful in answering how to unblock port 25:
[Remove port 25 restriction from your EC2 instance | AWS re:Post](https://repost.aws/knowledge-center/ec2-port-25-throttle). However, my question pertains as to why it's blocked.
Doing some research I've found a list of reasons as to why port 25 might be blocked or throttled by hosts and ISPs, but I was hoping for a more official explanation from AWS as to why it's blocked here.
Thank you.
Hello,
Is it possible to assign a domain name to ec2 instance. My goal is to have ec2 instances with my custom domain assigned for example: app-1.example.com
For now my idea is to programmatically assign or remove domain name based on instance state.
Maybe there is a AWS service that could help me?
Hi there,
I have some linux instances running on AWS but sometimes when we try to connect to the instance its say "Network connection failure" and same when I check on AWS EC2 console its says 1/2 status check failed.
and after rebooting the instance sometimes its works perfectly and sometimes it got completely disconnected and after this we have to recover the data from EBS volumes and required to create new instance. But the previous instance was not in work.
Please provide me a solution, why it is happening?
we have a GitHub Enterprise server. my company is implementing aws accounts and roles. how can I configure vpc and other resources such that we can spin up and ec2 instance and do a git pull overt https , from our enterprise server url, say from https://github.example.com/
I am still in the free teir period but for some reason i am incuring some charges. Can someone please explain what might be the problem. I currently have just one instance running