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.90.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3ab176559a0ed959e270a4b2a3858353b93f075c05e4c2cf0305fdc409f15c7 |
|
MD5 | a60b3fac0d7846057726ff1f9842b86e |
|
BLAKE2b-256 | c4b25fc9ad171e3a596e4d810aed433af189134a5f0d86ae33eb3c13e60ac75a |
Close
Hashes for pepperize.cdk_security_group-0.0.90-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b56610a47f739373786154430433d48547d15aed18af63ae7908cd3d7d9d659c |
|
MD5 | dc581000c76af114ab27d648433a9771 |
|
BLAKE2b-256 | c896bc6fcbb146795954882a86ca9e093658bbfacacde429ceed9c4b8ed77137 |