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.103.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b3ae630f0622cbff07c39fa78566dff4070be3ec06f71acf47bc3cbf0a9d90f |
|
MD5 | ddd1f0573db0ba7b94010f576ee8b61e |
|
BLAKE2b-256 | 102ec6f5358512733fc23de3dff552c0286d29a0549f282d67550a891ef1bdcf |
Close
Hashes for pepperize.cdk_security_group-0.0.103-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a008ebf0b47694401b47b12b210495d50a5c51e340b617fc34ed59d70ca260f6 |
|
MD5 | a413a572f18d8ec8823839f7ac686a8f |
|
BLAKE2b-256 | 4631749b356cb03ccb72b5d57d9ce8dae89fd4046a77c512eea5025a6e41b785 |