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.136.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62fe4ddb38b8e07f0adbbf07797d8be77db64d933b0fbedee8b53985855eea77 |
|
MD5 | aa16b18659a467956c79331d466753d5 |
|
BLAKE2b-256 | 1ab5c358c4c29f0e315c13cd48052010e2fcac9a657d8a7782ccd030d48afbb4 |
Close
Hashes for pepperize.cdk_security_group-0.0.136-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ecece7dd82548b2d4690305c6eb5ddca655136d3c8be82061c786a2e23fb676 |
|
MD5 | 819d3430381167cc96249be882c1bb47 |
|
BLAKE2b-256 | 1cec201d500142849676c862ef3cf6a89953b8141f3fd2e8277fa322e72b9158 |