Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Don't add securityGroupId to the securityGroup when it has been specified #31

Open
dbwiddis opened this issue May 18, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@dbwiddis
Copy link
Member

Is your feature request related to a problem?

The parameters serverAccessType and restrictServerAccessTo are required, and always update the security group, even if a user has already configured a security group and is using securityGroupId.

When no security group is provided, one is created using those parameters (good).

When a security group is provided, those parameters are added to the security group (sort-of-good but duplicates existing rules often).

When a security group is provided, and serverAccessType=securityGroupId and restrictSeverAccessTo matches the value of securityGroupId, the security group is updated with a rule referencing itself.

What solution would you like?

Perform an equality check between the parameters securityGroupId and restrictServerAccessTo in the case where serverAccessType is securityGroupId. In this edge case, do not update the security group rules.

What alternatives have you considered?

Letting the useless/duplicate/self-referencing rules accumulate on the security group and periodically clean them up from the EC2 console.

@dbwiddis dbwiddis added enhancement New feature or request untriaged labels May 18, 2023
@zelinh zelinh removed the untriaged label May 23, 2023
@zelinh
Copy link
Member

zelinh commented May 23, 2023

[Triage] @rishabh6788 Could you take a look here? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 📦 Backlog
Status: In review
Development

No branches or pull requests

3 participants