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.71.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67d60ceee1dc2323f6df9f151fa3e6385200fe8b8fab7468753627880c773952 |
|
MD5 | acc18aaea2d10dd454ff3f6393113a34 |
|
BLAKE2b-256 | 5f1f8e01265d88a14bd4e02ae63572bdf2602b8751efedd2f6aef5cffb966047 |
Close
Hashes for pepperize.cdk_security_group-0.0.71-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d70473e197d27a0e39d9868699d306eb224745c996ac87cb3ef5f36d87e934a |
|
MD5 | 7a936ee817cd7128322a66b55d9d26f3 |
|
BLAKE2b-256 | 6ab1189b4a6f6bee6c8946528913c012367dbdcc125d8bf3334ace9dd4a77423 |