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.50.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9aaa8407c7a17ac3837b7727c6af392898a52aad8ab8947e516569b57121cdc0 |
|
MD5 | 7e16b3d0028b3e910ce210ce22cd7aec |
|
BLAKE2b-256 | 1da93da056e039e0d14b7e442f38d9c1ad571188a652d131c7fb76ec60309504 |
Close
Hashes for pepperize.cdk_security_group-0.0.50-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1f64bd66e9f481b321a7e9822ce331a39713e73084a3ecaeef4152ae638c9d5 |
|
MD5 | bedb2c78cf50fa92d0611cc201b83d35 |
|
BLAKE2b-256 | 4165677601916d98386105f71698708a19245f75fe5b6d06501c521c6710759a |