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.46.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32408e3b59a561905c9d28eed08ff350000cf1a06a501c4e7fe780258bde5487 |
|
MD5 | 0e9c896ca32cc249a9e452ee9f28ef1f |
|
BLAKE2b-256 | 0d31959c0031f9a3a17be826f0035fc993ca4ea0d70c66bc1959cc97ea95950f |
Close
Hashes for pepperize.cdk_security_group-0.0.46-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b86c0841d0cfa8d471f48bd1962e7eccb121be4dd887bc48fe2de95d1130055 |
|
MD5 | ec0e6bed64bc23796c6c5e2327f796dd |
|
BLAKE2b-256 | 53cf88596eb77465b37ac5be8a738e66b70ccd07cf316c91b1701197e539dbea |