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.86.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b937bd4f2a0b54741749c917adf246f692ee2fe8a4ea24b000bb74e720ea2c86 |
|
MD5 | 7f8950a363dc26ae383fb6f424b42d2e |
|
BLAKE2b-256 | 02400d678821aa4b3eb9c7d327f90be41a56bd38bbb864989f76280df5307ff4 |
Close
Hashes for pepperize.cdk_security_group-0.0.86-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0917cbf715c9ad50d4c51ef5f4d120c916153e01cc994bfeb0ba9dc81c026491 |
|
MD5 | 306547d838d63e010cf8a07168329ffa |
|
BLAKE2b-256 | 42c812b57f4ed3a18c5e63ba351af58a1de44eaf93c66e3963f1f8a680fb15be |