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.32.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98fc20cc18938f231681a5e7c06b237f5e8ba379c2865fdcc258f4a899625586 |
|
MD5 | 19a0c6189b20a4373860b81b4cb780da |
|
BLAKE2b-256 | 1656c0d24e41cda9553f8239a80f794ec6f1f8681b5d4b8428220c291e7954e4 |
Close
Hashes for pepperize.cdk_security_group-0.0.32-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 751c930c196a61e07c8983a5df3ed27ad9e35f98b35b181c4c04404fa8c77473 |
|
MD5 | b7edc78049d603b0f89560e0f7d19c6f |
|
BLAKE2b-256 | f170c25ff6ce383b7a3bbe2fba29e4bee858f6b21e10fa6b7a60749514e434f4 |