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
Java
<dependency>
<groupId>com.pepperize</groupId>
<artifactId>cdk-security-group</artifactId>
<version>${cdkSecurityGroup.version}</version>
</dependency>
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.191.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2256528bede16c0c6dca6369bf4186642e79c0483edf2778a1db05358f61b344 |
|
MD5 | e0580a28d2b7883e4b56d175304274ee |
|
BLAKE2b-256 | 31b5c1207ad9d50ed72dbeac94dc08c1046d624d3fda67cc804a47b05e4423c9 |
Close
Hashes for pepperize.cdk_security_group-0.0.191-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eaf54718be1e4e33ba3f53a5d318495bdd7d4232a27562e8781940a2b8767377 |
|
MD5 | b4202b4008262aa001ea3d1e30982696 |
|
BLAKE2b-256 | ecd2966715474b6f459659083daedd8a240eca291a3e46d576f4519fcf2a652a |