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.85.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d05b3d165c5d8ce6eb39102aa9b58525b821f954c0489b7c5bdfa8ca60db57e2 |
|
MD5 | 64bfce48042113e49a0991670060a905 |
|
BLAKE2b-256 | ff91c4b1d831680b84b8b4a45854d8922d2a87818e01e4555ff7c479cf596dd6 |
Close
Hashes for pepperize.cdk_security_group-0.0.85-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ddfb93bfa4fba5e066471d258d1b340d4b28e10ad7c156afaf111f5010903a13 |
|
MD5 | 7c6d5fc67c8a8a8c20fbe5df31f3e734 |
|
BLAKE2b-256 | 141aa39a5c84a539d43438963a8254113cf22ff3575a31fcb4ecdc8d0293277a |