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.67.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0332a6b626caeab2be66e438fdb8d5257142a163235f9b3581856df504067c35 |
|
MD5 | a9406d58a076cddc5d1ad060aa15f2db |
|
BLAKE2b-256 | 1b952644cf9d9b6b29c5bda76301401fb7339021eeca324efccc42a3adfb5334 |
Close
Hashes for pepperize.cdk_security_group-0.0.67-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fcddc60bae1eb569b090a017b1e0c36f3d51e4d91c3f161c852c25f223cb4c7c |
|
MD5 | b7762db8ea9fcf265acf184309015b90 |
|
BLAKE2b-256 | 8471554d2da4e2d5b4a7ef42ed36c790093c99524f73c806d4c461a83ebb33a9 |