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.105.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7d6a0a124aab1fea30f0b68bdb7be5d2ca85c05a3d4868c48406a9cf6b6f19a |
|
MD5 | aab923fde4555d2affec8b57aa8030aa |
|
BLAKE2b-256 | 2813e72f0799d4c7e2d56cd8e2c5f6fea4e36093514b357b679e055cd926ada4 |
Close
Hashes for pepperize.cdk_security_group-0.0.105-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a56a90adc8aad9235a8433bbf0477232b99d964b36dd30456008531e02abd84d |
|
MD5 | 1c4713d17c81a2f8ceb85bb5b279e3ac |
|
BLAKE2b-256 | fb895ddb04b94913a967e73308b4e3da8c6ce4deb0681557ff101871ca58519c |