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.68.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57e740763f32d2728c24b7e6cdd7abd8393874f79326e39007d74081b76e22d8 |
|
MD5 | 866c66e73322ad3f891b34e0cbbc347e |
|
BLAKE2b-256 | c7b634b8424700404715f22d3bbff2f67e8140a00c11b7d3fe1e516642cbd54b |
Close
Hashes for pepperize.cdk_security_group-0.0.68-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a5568d6f7d976f789d464fb2a44bd75fb089a2fe7e9201e1bc6d417b4bf57ac |
|
MD5 | e716a3b1bfdf77610c11f6b743ad9909 |
|
BLAKE2b-256 | d78914e67e2527e04ee0d2b188567cd4f7c8bbe1b7190cedbaf3bc12b98601f9 |