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.111.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49b13125856d693dcf7a487e7b409b8b3688b2afac19029855f91d9072faf589 |
|
MD5 | cbdbe7ff54b2aad6717712969c095bf8 |
|
BLAKE2b-256 | e094bdcb3138310fe986aa932eaa86b28fc9f6eed2f615317c0a170418a8da79 |
Close
Hashes for pepperize.cdk_security_group-0.0.111-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62e9140ebea77d423bff03fd2c31aad178c4423f961c62ba28b62711a70cb512 |
|
MD5 | d92b1a2fe7cda8419c8636f8fecab75c |
|
BLAKE2b-256 | f9158fa07b38481389f7f2ced934b245a0ae7e0ada2c93c76792a8e7de6483ab |