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.65.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5d732766d2183d42854cdca85bcda8e5578bfe03a6cf29762c17e511e289926 |
|
MD5 | 75a4f34e013868c9da30208e4c45dedf |
|
BLAKE2b-256 | 8132e4e8928cc67b56ce6793cff7e73e57fdfbf613ce9cb4c96b2fad6d0e71c9 |
Close
Hashes for pepperize.cdk_security_group-0.0.65-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2af3fdc8464bf85ba0c49e0ffcf2db0ba0b113e7a3e14270bcdd3d307f290ab2 |
|
MD5 | 91354e5618f630de54745f1c189b7179 |
|
BLAKE2b-256 | ffba4cd1a93d5f50d70f4ca7f417b2d18cefb098d8126baf01a18bc0a4ec1427 |