ThatBrianDude
ThatBrianDude

Reputation: 3190

How to give a VPC and all its instances access to a AWS Security Group

My goal is simple:

Allow any instance inside a VPC to connect to a specific security group.

The field for allowed sources suggests: "CIDR, IP or Security group".

Is there a way for me to specify a VPC?

The reason beeing that I have multiple instances inside a VPC with different security groups but all need access to the security group I am creating.

Upvotes: 2

Views: 2381

Answers (3)

user4889345
user4889345

Reputation:

Set the Inbound route to the required CIDR group. The Outbound will automatically be set as per AWS VPC design.

Upvotes: 0

helloV
helloV

Reputation: 52433

What you are asking is the primary functionality of a security group. For example, if the CIDR of the VPC you want to allow is 10.4.0.0/16,

enter image description here

Upvotes: 2

Mark B
Mark B

Reputation: 201048

Your VPC has a CIDR group range, so just specify the CIDR group that is being used by your VPC and it will allow access from anything in the VPC.

Upvotes: 5

Related Questions