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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54abfae311be5629b85b85361e3d83122ac84936555f7df394006f001fe8430d |
|
MD5 | b3dcf1226b4fb5fdecda9f3204bf88cf |
|
BLAKE2b-256 | 981afee83eb8cc34d8c93b793c5788a886a66a2150da7677cbc6c80e36339f18 |
Close
Hashes for pepperize.cdk_security_group-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17089854a5e33968a2aed79356f8aee1ecbc3834ec062dbbfcf48add6d931a77 |
|
MD5 | eb2bb3288bdf0b4edcf96db2ac3c743f |
|
BLAKE2b-256 | 337c0e8d205a865ae1cddfc6875cc125fcf20d414f74b6b9aaa1b359cde70a0b |