- Más nuevo
- Más votos
- Más comentarios
When you say you checked with curl "ec2 private ip":80, do you mean EC2 B's private IP, and you're running this on EC2 A?
The behaviour you're seeing matches the description of steps you took, as you don't say anywhere you connected SG A to EC2 A. If you did, then a SG B rule allowing ingress from SG A should allow EC2 A to connect to EC2 B.
Hi, please clarify so people can help as suggested by @Hrushi G. For example:
Which subnets are your load balancer in? Is it an internal or public load balancer?
When you say "the load balancer also referenced security group A" do you mean the load balancer's seccurity group (let's call it B) referenced security group A?.
Are the security group rules you've mentioned all Ingress, not Egress rules?
How do your load balancer and Fargate connect, it's not clear from your description whether your container is acting as a client of the load balancer which is in front of some other workload, or whether the load balancer is in front of Fargate.
How are you testing it? Do you have a client attempting to connect to the load balancer? Where is this client, and what protocol is used?
What error message do you get?
Edited per modified question: Please review the documentation on security group referencing here:https://docs.aws.amazon.com/vpc/latest/userguide/security-group-rules.html#security-group-referencing
Objective: SSH to EC2 A using Elastic/Public IP, and run curl command to EC2 B on port 80 from EC2 A.
SGA - Security Group A must be associated to EC2 A > Inbound Rule: Source <My IP> Port 22
SGB - Security Group B must be associated to EC2 B > Inbound Rule: Source SGA Port 80
Keep outbound rules for both SGs default
In this scenario, we are referencing SGA as source to reach to EC2 B
Sorry for not being specific in your question. To make the question more detailed, I used a simple environment as an example. I would be grateful if you could answer this question.
Contenido relevante
- OFICIAL DE AWSActualizada hace 2 años
- OFICIAL DE AWSActualizada hace un año
Thank you for description. I will explain more restrainedly.
Sorry for not being specific in your question. To make the question more detailed, I used a simple environment as an example. I would be grateful if you could answer this question.