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.533.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19031f8e7d53ed93abfe70d72f16b26b5d1078b85db9ba99fd859f240d8ac2cc |
|
MD5 | b93dc9f0b1271adbc7ed4478c5b8988b |
|
BLAKE2b-256 | 51e10571b74590a5df3e70b5e601f3d5987d53a20ccf5239dfcbe93bf957ca10 |
Close
Hashes for pepperize.cdk_security_group-0.0.533-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82e8a87a7ce73300c6e4af85fedec176f9079491ddc8baed0cd81cfb388737b9 |
|
MD5 | 8490fa2f91f39d27474d7695777db2ae |
|
BLAKE2b-256 | da087f95a759b53e915d8f0785567d15b0816768ed4a6a25a6b64a53780e88b9 |