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.487.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f540946c74fe576762619b8a91b37bfb3e89d1f69e4c78cc14eb933603c6db7a |
|
MD5 | d08315f789d8da9a0b4b46d967931ffa |
|
BLAKE2b-256 | 0f086a53743046fd30d422a2e5ea7da681ec93b765e481f850594d2e34ae592e |
Close
Hashes for pepperize.cdk_security_group-0.0.487-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e0bb25575f25e9f94ee4277f9c9d784157b7dc5121188aed15334be370afb81 |
|
MD5 | 294812a2519714d47aa0205cf437b021 |
|
BLAKE2b-256 | ff8326ee6c4e7a345d283cf7667bd15f0826ce588c8a81544cad9a6039a63556 |