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.107.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e18a3c2befc079747863a9fc7d21e45f52f743b653380ed4c8cb40defa2e8b9b |
|
MD5 | de7998e5def3cfe88df75a33de6d3c7b |
|
BLAKE2b-256 | db8002f791c4a35cea972871377af6a6e5949fa0caba1ecacfb13ad95dfdc98c |
Close
Hashes for pepperize.cdk_security_group-0.0.107-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8ebf2387aa61aa73d4b14fc12bcfe5d7b2104285b9894542ad3452baa793e96 |
|
MD5 | 5953d3f2448eb300344a31e0f7760830 |
|
BLAKE2b-256 | ae2f441f139f0d01df38ff072c5f4a04593b83ac5e8196fcc8885b05aadec56c |