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.81.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 768b00a69789fe91ed0196dc18bf028fa5846c3cdb9887e06f3baab1b3ccb41a |
|
MD5 | 1c1c83f644d2de3a01b454e2f33fb273 |
|
BLAKE2b-256 | a2203e7c6db4b6c8d21c28f2c725e5fd0b77fc33c1e1a37ea54f95ce798ba08e |
Close
Hashes for pepperize.cdk_security_group-0.0.81-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37164eb32b86f44d31cb6d1d40863f173667dc09ef22378180af71a05c7942c6 |
|
MD5 | 1ca54b662db29581a4040636561a285f |
|
BLAKE2b-256 | 2e152ee77532f3a7ad7ebdfa6f692391cafb71be549038350dfb741fff4d62b0 |