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.30.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9b5989ba7b4b964ff8563114daf53b796a50ed680b42f4ddb6486fc4f960d42 |
|
MD5 | b7ca7462955aa610cc1eee78eb68f309 |
|
BLAKE2b-256 | 21bf0d32b6c2808aa99f349d4a314915e515a40533ac06e6998815c6df6e94de |
Close
Hashes for pepperize.cdk_security_group-0.0.30-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e1c367c4b11028a09c8ac62699416b56382bdc1ba224c37783982d75b2bb40c |
|
MD5 | a329c6576ec7120307521f2d925f0cff |
|
BLAKE2b-256 | 0694a9a116165e1fccc8f8fa673cc718720106835ce645faba722c619a72742e |