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.92.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cad9ece6fb2accbab3383e4bcdcac36af9f6341010c00a6df0e0d139d5814894 |
|
MD5 | 3ffe6558d3842712f1e423e046bd571c |
|
BLAKE2b-256 | 44b14686e39e94b3b804a9f8a690be78eba103a06065689c638b7d81465a6b5d |
Close
Hashes for pepperize.cdk_security_group-0.0.92-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d117f2f8546bcf0f7df044b9fa13fdea0f536241f51f13a6a77b40aec1c6b7e3 |
|
MD5 | fda0623b43cdc8b1bdbe5c7d4f5eda26 |
|
BLAKE2b-256 | b506c8db8774c42ee3698872d150b62a1ad163cebb9ee215589ed64273e55e73 |