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.59.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e8493eddbbcdae2f0e1b647107bc80fe0c383e47abbabba819b24a1a2ba90e8 |
|
MD5 | ac2c1c9c49542374881eeac2c008effa |
|
BLAKE2b-256 | e635adf40c9dbe37cc9627fb99002a8440860bfe0441cb17ceec8a149afb4675 |
Close
Hashes for pepperize.cdk_security_group-0.0.59-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b54f709f15d23aba0f83677747f8caea93411c6d59134c424a6db26f542c7677 |
|
MD5 | 9be7ec3d9b9eae983a2517c20fda095b |
|
BLAKE2b-256 | 37cd404e4c65c0b28178515e33a3ebd79b9a88aecb8043b4f8c3becea56bebe9 |