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.40.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52116079b2a3c6d46cdb76a52bbade89a6abf9b082d0050b276addd2b1d737bd |
|
MD5 | 47e4355997773834976ff8d9a7de0d14 |
|
BLAKE2b-256 | 52336cdfe97e263a092b9a65f2d52cfbf0507af04f08092230324909d8a2a3ad |
Close
Hashes for pepperize.cdk_security_group-0.0.40-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb45421e3208306d1a64e9b53a7ee845d3378be995144dd19d1ecbb57235639d |
|
MD5 | 6460b4c9e23d7eb064fd8131db53fba7 |
|
BLAKE2b-256 | 5eed3499999ef190801db6427b2e70aa7245b074c92e648014e798a239a6dbd3 |