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.94.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f2b3890b99983d89fb6b41efcd45edeae847ac83c183eaaebfe77a7d50e4805 |
|
MD5 | c27ce59952fc6d7fbb9122556eecfc1e |
|
BLAKE2b-256 | 62dd06786bfae1d6ce35463fb2e8b08eb204c4aa9ccc47f9c7fb8bdfd3d34e42 |
Close
Hashes for pepperize.cdk_security_group-0.0.94-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23bbfd96c135f388ab1a630667025b71622ed4a6b40d365609ce54367dd98188 |
|
MD5 | 5c41d960982825865e1ac7567790f8d7 |
|
BLAKE2b-256 | 20b452e872fb34f5c7e605f73c43efb48078b8278bef864bebfd06e95b34803b |