Add Security Group lookup by name
See original GitHub issueSimilar 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:
- Created 4 years ago
- Reactions:87
- Comments:30 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
Any update on this topic?