Questions tagged [aws-security-group]

Amazon EC2 Security Groups

Amazon EC2 Security Groups for EC2. A security group acts as a virtual firewall that controls the traffic for one or more instances. When you launch an instance, you associate one or more security groups with the instance.

See Amazon EC2 Security Groups

820 questions
2
votes
0 answers

Undefined resource AWSEBLoadBalancer

I am trying to create an eb application using eb cli with Multiple Docker Container. I have an applications running on 2 ports so I need to listen on those ports. I tried your configuration on your .ebextensions/elb-listeners.config but I encounter…
2
votes
1 answer

Can you configure AWS Security Groups to have sub groups or nested groups?

TLDR We have a long list of IP addresses in a single security group which is hard to manage. AWS makes it feel like you can have nested groups, but you can't. Am I right? Background I do not have any problems with configuring and using security…
teaforchris
  • 1,327
  • 1
  • 11
  • 19
2
votes
1 answer

is it possible to limit inbound/ingress access to a load balancer to a source security group?

I have a set of services in ECS set up as Tasks hooked into Services that each have their own TargetGroup inside an Application Load Balancer (ALB). The Tasks needs to be able to connect to each other, for which they would need ingress access to the…
2
votes
2 answers

AWS: Security Group Auto Scale

I want to launch a single ec2 instance. The challenge that I am facing is I need to configure security group for this instance and I want only the instances coming from an Auto scale group to be allowed to access this. How do I set the inbound in…
Anshul Verma
  • 1,065
  • 1
  • 9
  • 26
2
votes
1 answer

AWS VPC Security Group Naming Convention

Does anyone see any potential issues with this naming convention for EC2 security groups? Security Group Name - EU-P-LWA001 AWS Region ( 2 char ) = EU, VA, CA etc Environment Code (1 Char) = P-Production , Q-QA, T-testing, D-Development etc OS Type…
Sam Hammamy
  • 10,819
  • 10
  • 56
  • 94
2
votes
0 answers

Ec2 Smtp Port connection refused issue not able to recieve emails

When I try to do telnet goodin.hk 25 It gives connection refused on EC2 instance this is the issue do anyone know how to resolve this I have this port turned on in security groups configuration.
2
votes
2 answers

How to edit AWS EC2 instance's security groups to allow access to a lambda function only

I am running into a security related issue with AWS lambda and not sure what is the right way to resolve this. Consider an EC2 instance A accessing the database on another EC2 instance B. If I want to restrict the accessibility of the DB on instance…
Mandeep Singh
  • 7,674
  • 19
  • 62
  • 104
2
votes
1 answer

How to Whitelist Amazon EC2 security groups on Mongolab

I am trying to Whitelist Amazon EC2 security groups (AWS only) and followed this link http://docs.mongolab.com/security/ I am getting this error "You may not define rules between a VPC group and a non-VPC group". I searched on the internet about…
2
votes
1 answer

Unable to Add Security Group to RDS Instance

I am running into an issue trying to connect to my RDS database with Sequel Pro anywhere outside of the IP Address where the instance was created. I came to this conclusion after trying to connect to my db form two computers with the correct…
cphill
  • 5,596
  • 16
  • 89
  • 182
2
votes
4 answers

How can I open port 2195 and 443 on my amazon ec2 server?

I have set up an Amazon ec2 server but I want to open port 2195 and 443. I already added ports from security group in Amazon console. When I listen port using netstat -anltp | grep LISTEN I got only two ports 23 and 80. I also checked if ubuntu…
1
vote
0 answers

AWS ElasticBeanstalk Flask Server (111: Connection refused) in error.log?

I have a Python Flask API hosted using AWS ElasticBeanstalk. The server works as expected but I noticed an error in the error.log. The error is: connect() failed (111: Connection refused) while connecting to upstream, client: ,…
1
vote
2 answers

AWS Boto3 - Add security group without removing existing security group

I have an use case to add security group to a bulk of ec2 instances in AWS, I chose python boto3 API to perform this action. However when using the below method, it removes the existing security group and then adds the new group. I would just like…
ram
  • 23
  • 4
1
vote
1 answer

Active connections persist after removing security group rules for AWS ElasticCache (Redis) instance

Hello Stack Overflow community, We're currently facing a puzzling issue related to an AWS ElasticCache (Redis) instance within our environment. We're hoping to get some insights or guidance on this matter. The situation is as follows: We needed to…
1
vote
1 answer

AWS RDS Cannot revoke vpc security group membership because it is not in the authorized state

I am trying to change the RDS instance DB subnet group but i am getting this error Cannot revoke vpc security group membership because it is not in the authorized state I have tried to do this from terraform still the same , i have created a…
1
vote
0 answers

how I can properly restrict access to the backend(API) server only from the frontend layer while deploying multi-tire app using security groups?

I'm implementing a three-tier architecture on AWS for my web application. The architecture consists of a presentation layer (React), an application layer (Node.js), and a database layer (MySQL). To deploy it, I have created two EC2 instances for the…