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.100.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | baa8b29a044bd69f9eb2290e7cd8793a80f047cd90fd62dd8aefc1a51fb61687 |
|
MD5 | d4c8a78114de0fc392bfd9cebff2e222 |
|
BLAKE2b-256 | 466cec4a2b17914a6d21006a7b306bfe3f5ca2abc513456498b021847689e0c0 |
Close
Hashes for pepperize.cdk_security_group-0.0.100-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd9be218b64bb14c5e227252d5ed6c09c9d9c320559087a1fd4719797aff050c |
|
MD5 | ae84b6da77f588e55fc33950f7a3f565 |
|
BLAKE2b-256 | ec9983a388da37b490a9345c6bae03adf438ab124f6678d530b046da52a91c78 |