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.91.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fe4b755319af0bf99abb2192fb382d7ba3eeb48a6b0377441854bda790a30da |
|
MD5 | 52e58dde401159ff85ee6537b5deaf8f |
|
BLAKE2b-256 | ad7ea14c703031717905d71b2a089cae902c522eb9a0590d9764108e70338645 |
Close
Hashes for pepperize.cdk_security_group-0.0.91-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4dcaa6b46f82e2fbb3a3be1314891f85fdea6242944b3b8b276092c9e2866b7e |
|
MD5 | bf1f7ec1277240b0d1cf02fcefec6f0c |
|
BLAKE2b-256 | 62d31691d6add54f3585ed827b2d08d9a375e08596c4e344c3406e4e97207097 |