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.113.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d79b05e4a0f65cf2e24b2fdf25a4cefdf7dd20501ded46e8e3159a3068823f4f |
|
MD5 | a369e343c0b3f6b1dde626b53b3e0ac9 |
|
BLAKE2b-256 | dd3a13c2235c9483ddb5178ad8b3665591885463607bb9ff061df288e1dba6bd |
Close
Hashes for pepperize.cdk_security_group-0.0.113-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2b75bea2f0ba65e3ac31fbc06d3e64e440899e3af0c38b23ab2a12e4028c180 |
|
MD5 | 75fabf917739e391333fa00698f86224 |
|
BLAKE2b-256 | 1126c25b8832217eaa7513c4affbe14bb2d1a33b800842ed2fe0010027cba3ff |