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.47.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56f17ba557f3872756f829ff3ccb4e6587de32d700a5c71b624dd1c48cd521ca |
|
MD5 | 90ca72facd4ae554bce90dedf5eef4e1 |
|
BLAKE2b-256 | 4d319cb7268eb875d5fb7336e65373d1354bc03817445d42aef8db119ef430bb |
Close
Hashes for pepperize.cdk_security_group-0.0.47-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f8c47472da090a66480a9689f6e159457b5aa86758b913aa6b2fbe04b6852f4 |
|
MD5 | 5c5f85f8f9782790f17be9ad7f1240f0 |
|
BLAKE2b-256 | be5027dc99dbc2bbffb88554ef8e1ab38ff6bd26ef9d1771f00d4fcba2f3012a |