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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 560da676698b5ff6c982e2f74cbe1ec28ca31b53b2e92ed6602029c305138c29 |
|
MD5 | 33c07b4b5f58510124b7bcebaba55c4b |
|
BLAKE2b-256 | a4943d964dd49446c2e9774160c9b949ed207880fe6b44e5243665d9e492682a |
Close
Hashes for pepperize.cdk_security_group-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c5a26b7c458e83ce55a16952d80767e826748c6de01f354857612e6fc0f740d |
|
MD5 | a150f4b23db590025c064202870a0ace |
|
BLAKE2b-256 | e9276e3f291f3a71409212267d57018b38cf693da246cd1ed323542bf354f929 |