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.41.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2369458ac04332cb803bde8e25c8425a1b7bb5f6ac39eb8c3f250961a6920cdc |
|
MD5 | 3364e06f2f8765dfd70c945709412c02 |
|
BLAKE2b-256 | 590e20ec82b126cbf1175fc80695cb76457e009f78c70f323a29400c30764592 |
Close
Hashes for pepperize.cdk_security_group-0.0.41-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | acabad3f9b444a525c9ceb9239299605b6ca5c870efdaa9b4580e141d051de5d |
|
MD5 | 9e94ae19941cfa5ce517b44321b5cd7d |
|
BLAKE2b-256 | 651a868aaab204d0c7ef742fc48636d0ba50008887128f1f076ce37df9c755a1 |