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.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08f14956256191261422806852d2296573cc3bf898a083e138013603a4f0f7e4 |
|
MD5 | 39596016ad25a20c68761434bf01b7bd |
|
BLAKE2b-256 | 8303979e41f01fbb777de5a33ff9ae9c5e694d12f98ec7359b40490287eeac2d |
Close
Hashes for pepperize.cdk_security_group-0.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 877c2ea6be7675047a94de4dde5b47c7bf57a2671ee1418839d3db7f30ea3d9f |
|
MD5 | 344456d2e786538c3bc5ac490d79b5d5 |
|
BLAKE2b-256 | 436125d52a7eeed39bd8610043b32fc7fc325feb7d8f3b0d8cc427700ddbfb7c |