This project provides a CDK construct to create an EC2 SecurityGroup, which property `securityGroupName` returns the GroupName.
Project description
AWS CDK SecurityGroup
This project provides a CDK construct to create an EC2 SecurityGroup, which property securityGroupName
returns the
GroupName.
The CDK EC2 SecurityGroup returns the GroupId from the
Ref
return value of AWS::EC2::SecurityGroup, rather than the GroupName.
Install
TypeScript
npm install @pepperize/cdk-security-group
or
yarn add @pepperize/cdk-security-group
Python
pip install pepperize.cdk-security-group
C# / .Net
dotnet add package Pepperize.CDK.SecurityGroup
Example
npm install @pepperize/cdk-security-group
See API.md.
import { SecurityGroup } from "@pepperize/cdk-security-group";
const securityGroup = new SecurityGroup(this, "SecurityGroup", {});
// Pass to another construct
new OtherConstruct(this, OtherConstruct, {
SecurityGroupName: securityGroup.securityGroupName,
});
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for pepperize.cdk-security-group-0.0.34.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7a42444e2fa4aa2687a21d842229e021de034a6f038558fa4f5623ca3332054 |
|
MD5 | 80059ed6546121c627c793ac7361d2bb |
|
BLAKE2b-256 | f6ca0076f0c8cb09e9bd7ac0389ebf39da74c113d1f0245aa3153eff973c3eae |
Close
Hashes for pepperize.cdk_security_group-0.0.34-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42bc8972eba1f6f6430cd84e851710bf1f7c7dc1640907a75176fcc54838fabd |
|
MD5 | 17c7e3ccf24942fbc70088ee26ee24f1 |
|
BLAKE2b-256 | 7f22a93fcbd85cd1661660b3722bba6508a50e4c925d045ce35e4d4d19002f58 |