Skip to content

aws-ec2: Add Security Group allow all traffic to self #38558

Description

@erezzarum

Describe the feature

Create a new parameter for the SecurityGroup construct allow_all_self=True that creates a Security Group with an inbound and outbound rule for all traffic to self.

Use Case

EFA Network Interfaces requires a Security Group that allows inbound/outbound traffic to self.
Adding this option will simplify how customers uses CDK to automate Security Group creation for EFA Network Interfaces.

https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/efa-start.html#efa-start-security

Proposed Solution

No response

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

AWS CDK Library version (aws-cdk-lib)

Latest

AWS CDK CLI version

Latest

Environment details (OS name and version, etc.)

Any

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-ec2Related to Amazon Elastic Compute Cloudfeature-requestA feature should be added or improved.needs-triageThis issue or PR still needs to be triaged.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions