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.12.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a22d0488f317e725dea926ab970f930c30d4d3b260001fee59e0ca41be3531b |
|
MD5 | 372d3483819cd893a479dc3455a604db |
|
BLAKE2b-256 | 4117d13dcb033e6d618d290f2d6d971ccdf8aa4ad9e487eaccafd42238cea465 |
Close
Hashes for pepperize.cdk_security_group-0.0.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40377e8898b4767b3d84781f74142a96ecf2f837ed4b0b85c4038dabb63ea581 |
|
MD5 | f7150685da340bc1421d329b8a1f2e33 |
|
BLAKE2b-256 | a36ffc36ec5305ba49dbab4e8764a081918229ef9cb5c747a8f67075e2fea01a |