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.121.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2501955248396bb54b64e14732efcd246f49b42dc3f56a86adb475a440876975 |
|
MD5 | ddbbbc0e96e151a8fd10a1c6935fc680 |
|
BLAKE2b-256 | 1ebc2da91982508bcdeb7343262ec5a74f92bdcb3b06ae568bda68b092c4cc47 |
Close
Hashes for pepperize.cdk_security_group-0.0.121-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4050240235d87f97d46551b7b75f01ae1debbdb5e412ca6c0c53314b9cbdc644 |
|
MD5 | 1ce00464f5d67389f33c688b55150045 |
|
BLAKE2b-256 | fb7a28592d554a281c8e77d3272097b7fb68c9ef1342066d9ccf789985fe14e8 |