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.25.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d67774461d2ac4c2fafcd8de649a2b3671a4b375242bf500f35e890e0868dc3c |
|
MD5 | fab5c186484e722891b58f036126991e |
|
BLAKE2b-256 | 3f86c615746a3d84fa25065e507eb83bcffc31e5d05ea9af3e097f9dedadc3f5 |
Close
Hashes for pepperize.cdk_security_group-0.0.25-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 860ec7229ffb4f6b160180728f0ff66397c0cb677bb7c99d5a96c8b04798faed |
|
MD5 | e469a91325cf30b4b531d9d680b85cd4 |
|
BLAKE2b-256 | c2d17c6c52a769bc3930c4c4e4bca9473ae4254e03a39058d5d1b37d3c1cd58b |