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.21.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32230a9acd4b740254ca41940fc53acef4213601f42b5955e761654429e8d4fc |
|
MD5 | d291edfdddce9d69506f359a1438b265 |
|
BLAKE2b-256 | 0b6b6824f8492c5891068cdd3433f53d53d83fd5ac194e3ad6a5ea2e1af6e1c9 |
Close
Hashes for pepperize.cdk_security_group-0.0.21-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25817a0c1d1b32b1cf3cea6e164019d150740e4624f3421167d4999646fd8c75 |
|
MD5 | dbfd9a39aee7a9b81cac236c92474d4a |
|
BLAKE2b-256 | 3bb16325ea085741ba878c2e66c55c54aa64640bd169bdbecb47a743045cf922 |