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.104.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f3b0da47a9d71c1d67609c29aacfd3f32b697dc02a8f8159fe6fc645ff28b8c |
|
MD5 | 8f0691a78ce907e5e436d65aafacaaaa |
|
BLAKE2b-256 | 8a312022d09f0ae61786817e63e8e42a26b59f8e68b6361cbc53acc9e0db4689 |
Close
Hashes for pepperize.cdk_security_group-0.0.104-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e15c71ef2cadcecf93abfc6b473782da8adf146a58f78310bea2a05ac4a811d1 |
|
MD5 | 066eeffd70f764c3f00550bd7f56fe81 |
|
BLAKE2b-256 | d5b60f0bc2534481ee1a61fdb9110f411e0a9d0c45cbf9d33e7315311d0af323 |