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.28.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8987fddf454cbf3c66e8e30cb5c0319f1f3ac54dc8c9ab07ce07cd3c085c7597 |
|
MD5 | dc590eed01d783a86f3cc6af13fb649c |
|
BLAKE2b-256 | d2095b7c368c9289ab1057e7de8968c3226ff59c4b0df0619c6de448dbd99f6b |
Close
Hashes for pepperize.cdk_security_group-0.0.28-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b390b80c72685e88773c87149f9efa6d26268209aa3440c4ee22d3b4493947a0 |
|
MD5 | 655a69e3e2db82dbedfe6eab03d1be20 |
|
BLAKE2b-256 | e0b65ca3b8f30b733b66bc77f6f6747fd5c5de7652367c8a39f50fb7e4953099 |