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.73.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2931bf57376d877fa81bd899a12d3196f6d483482bee0d098484b271b23db8a |
|
MD5 | 5c3ba038cb0caf878e305e24932709a6 |
|
BLAKE2b-256 | 53e648d3d442b7d589b190140b4d2db70b250201d889cb97884a6f9048f94ea0 |
Close
Hashes for pepperize.cdk_security_group-0.0.73-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | effc82c73fd99e6c363bfd050c66d20c1f6a55d6d61ef833adc606064333378b |
|
MD5 | 63bfe7254898978d9f086ba9ce97c129 |
|
BLAKE2b-256 | ba09dc5263b452e7652f81cc390fb5a80bc49a413fc5ed3ee317f3f558c015d6 |