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.97.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97a577e2682897c7749d305a0059a0903c079ebd36b315ce4a73b849f9fccd17 |
|
MD5 | fcc47c82bb373caa1d83bf35919813ea |
|
BLAKE2b-256 | 497bd0cc127d9cb30c5994a5358bbee8d906649d64fca34d175861ff22516277 |
Close
Hashes for pepperize.cdk_security_group-0.0.97-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7cfaf98031f6d89526a26d1b4cddcb1644dbbdd10fbc5ede4616dfe8af12be60 |
|
MD5 | 745efbe73ac283ab163d4176d6bbe0a9 |
|
BLAKE2b-256 | 18fcbc653e3ff4bc1a29686c29a97670515a4cd2f367d0d749be469dba65a847 |