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.408.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | efd0930caf6e5a96be875a18e1e43d9c343da5f69154583ba70864f666043da1 |
|
MD5 | 50594fa4c4ded8698165d91808952656 |
|
BLAKE2b-256 | 632af80c71f6811aa73a1c5b5b6ac60091ce4760e11ebf17479f9908989d4bc3 |
Close
Hashes for pepperize.cdk_security_group-0.0.408-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b717deb1b4528ac8fa47051b0ed52204b8135bfeadc7c6822d5a45fded115ea |
|
MD5 | c50092e5a3108330d36fac1c3290fa09 |
|
BLAKE2b-256 | d2624abec9d5de67eae8a71b1360fc7737b400574839eb05a2d4c02f6f9e9a0b |