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.56.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e6336349a2841335d1bb7ffcc9e2044dcb79583d2d9ca81affdd18c822341e4 |
|
MD5 | fd84d3062b936b5c44ae753b99f7eb19 |
|
BLAKE2b-256 | 0f1535fdb356f012c4092eca2aceeb7e1bc56f93cce334d8ea1bba8416c3dba9 |
Close
Hashes for pepperize.cdk_security_group-0.0.56-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd77ac678964ce3d6cd04e1e15430ba3e8bfa5812ed5d68caec814e151ffd102 |
|
MD5 | d6fc31a617744c2b1ed3e81bf2c03762 |
|
BLAKE2b-256 | c17214aebb4ae79cea6ebf189248380940f1c2334d5f81a28accf7e3a4c866af |