question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add Security Group lookup by name

See original GitHub issue

Similar to SecurityGroup.fromSecurityGroupId(), please add a SecurityGroup.fromSecurityGroupName.

Use Case

There are cases where existing SecurityGroups need to be referenced and have well-known names but not the ids. It would be nice to be able to look up SGs by name. Otherwise, a custom resource and/or SDK is needed to do the lookup.

Proposed Solution

Add a SecurityGroup.fromSecurityGroupName method.

Other

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

This is a 🚀 Feature Request

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:87
  • Comments:30 (5 by maintainers)

github_iconTop GitHub Comments

7reactions
njlynchcommented, Aug 24, 2021

Given the attention this issue has received, I’m correctly labeling it as a p1, which means it should be on our near-term roadmap.

We welcome community contributions! If you are able, we encourage you to contribute. If you decide to contribute, please start an engineering discussion in this issue to ensure there is a commonly understood design before submitting code. This will minimize the number of review cycles and get your code merged faster. Security group lookup by id was added in #11089, and would be a good inspiration for this work.

2reactions
Arthus15commented, Oct 4, 2021

Any update on this topic?

Read more comments on GitHub >

github_iconTop Results From Across the Web

CDK EC2 SecurityGroup - AWS Documentation - Amazon.com
No information is available for this page.
Read more >
Import an Existing Security Group in AWS CDK | bobbyhadz
Let's go over the code snippet. We imported a security group into our CDK stack by using the fromSecurityGroupId static method on the...
Read more >
use existing vpc and security group when adding an ec2 ...
Vpc.fromLookup(this, 'VPC', { vpcName: 'VPC-Name' }); // looking up an SG by its ID const sg = ec2.SecurityGroup.fromSecurityGroupId(this ...
Read more >
How to Change Security Group in AWS EC2 Instance - nOps
To change an AWS EC2 instance's security group, open the Amazon EC2 Console and Select “Instances.” Click “Change Security Groups” under “Actions” and ......
Read more >
Working with security groups in Amazon EC2 — Boto3 Docs ...
An Amazon EC2 security group acts as a virtual firewall that controls the traffic for one or more instances. You add rules to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found