Questions tagged with Amazon EC2
Content language: English
Sort by most recent
How to use CloudWatch to monitor the number of active connections to a Lightsail server
Is there any way to use CloudWatch to monitor the number of active connections to a Lightsail/EC2 server? I know there's such an indicator for the Application Load Balancer, however, there's no load balancer in my infrastructure. The number of active web users/connections is one of the most popular indicators and we want to find out more about it. Thank you.
AWS internal communication between 2 EC2 servers
Our infrastructure is in AWS. We use AWS Security Group to define inbound/outbound traffic rules. Our servers are ip restricted, as in only traffic from one particular ip is allowed as per the Security Group rule. Say, we have 2 EC2 apps that serve web traffic. And, as per the Security Group rule, only traffic from that one ip is allowed to these servers on port 80 and 443. We now need for these apps to communicate with each other, i.e. send each other HTTP requests. We want the 2 apps to communicate with each other internally because they belong to the same Public Subnet and VPC. If the communication is not internal, traffic from one app would reach the other app via the internet, and this would not be allowed by the existing Security Group rules. Is trying to keep the communication internal between the 2 apps the standard way? I need some guidance on how to best implement this idea.
What is the difference between Lightsail availability and EC2 availability?
As of now, I have been using Lightsail-related computing business for several months, but I have found that sometimes my customers cannot connect to the server in recent months, and this time lasts for a short time, and it will be restored in a few minutes. Still, it makes me worry about its usability. After my investigation, when my client can't access the server, he can't ping the target IP address. Does this explain the difference in the availability of EC2 and Lightsail? Or is it an issue with the AWS network? If my business requires high availability of the network, will using more expensive EC2 improve availability?
How does EC2 hop to a publicly accessible RDS endpoint?
Hey team, say I have an RDS endpoint that's publicly available. I then access this endpoint from an EC2 instance. What happens at the network layer? Does the request go to the public internet? Ideally, the system would know that the we're inside the same vpc and hop right over. How could I confirm this?
Is there way to acces flask app video capture inside ec2 instance [can't find camera by index]
Hello everyone, I have a flask app that streams live video; however, when I try to deploy it to an EC2 instance, I receive the problem "can't find camera by index." Could you guys please assist me with this? I've tried a few internet solutions, but they didn't work.
How to setup an EC2 Security Group to only allow inbound traffic on a port from the API Gateway only
Background: * EC2 instances hosting a REST API microservice * A Network Load Balancer that fronts the EC2 instances with a port 443 Listener that has an ACM issued Private SSL cert installed on it * I have created a VPC link to that NLB. * Created an instance of the API Gateway and defined a method on it. Everything is working fine. I need help with creating a Security Group rule that only allows inbound traffic from the API Gateway on the EC2 port where the API Microservice is exposed. How can I go about doing that? Will appreciate any help with this issue.
How to download EC2 volume to personal computer
I am trying to download the data within the storage volume attached to my EC2 instance to my local computer. I do not want to store it on AWS any more, nor do I want to continue to pay the charges that are necessary for a snapshot volume. Could someone please assist me in doing this? Many thanks