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.320.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ded14f3d02892cf2c04173bb364a53f0b28bc5f6c6dcab2b7fb61a9570c7bfa |
|
MD5 | 9315976e573256f7a4f02dd5eb498f24 |
|
BLAKE2b-256 | 235721760cf153c88c6465c23e4a84bc4bd513d5756745540a5aefb94ae13f2b |
Close
Hashes for pepperize.cdk_security_group-0.0.320-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b30cf15329ad0ad7b793e85940b563504116d17f00afde12602f0de7d8db059 |
|
MD5 | 99f1e0c8d3b54ea7a3c6f5d10f40f646 |
|
BLAKE2b-256 | 71eb885f3975bf9f5242fdbe08bcaefa10311628250b9078ffdc03894f6a783a |