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.22.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec8bbf6ecf2f5f3f09748db15f3f51aa61a4295d7ebf45be07af375fd3a699ce |
|
MD5 | 2413bbdeeb263a47e1d26b7ecbbbb430 |
|
BLAKE2b-256 | 2eca1ea7d7b7614f5f7a8f9b866b94fa0975bd0a77ceca2f3392a442ce1de35d |
Close
Hashes for pepperize.cdk_security_group-0.0.22-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d983877cd85469e4a0263d726ea812bad17b474239b3b621927c3430221fe066 |
|
MD5 | ee20d95114a7d1ba0e97cd9b6394af90 |
|
BLAKE2b-256 | 2a2f75565b68c15bd1a3146de6d8f352847211eb1cbf825526b4b41b447e6323 |