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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89283fbaf10ca8f4dcef5dae41537fc4a06ef6398062cf1b1c4e8317b3f32a95 |
|
MD5 | 6d1cb01feb4a6e245fb1e4d7d6f40ed5 |
|
BLAKE2b-256 | 6dc80e12e6405ea1a252b0f669c1e35f65d283704940dcdb2b4f3fe85fdaa3a5 |
Close
Hashes for pepperize.cdk_security_group-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f0a64f711d6cf3952c961d8f9431452fe0b6753ffcb7376d076605f0d869c64 |
|
MD5 | 1af9285387e793907f88403f540391eb |
|
BLAKE2b-256 | e2b194667a3ccd229f37ca5a6787151b18d9d93264b9773fe50ca88fc9a73f41 |