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.536.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e1c75698f1a803e8734b33405645125fa1b623b375180603422f09017b2c725 |
|
MD5 | 7f805eea57c68457c2401900c11fc54a |
|
BLAKE2b-256 | 70f819717de861e3d8a98b98d4d4216c2674e0bb270e82478f50cbe0350e2ccb |
Close
Hashes for pepperize.cdk_security_group-0.0.536-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8451a1d77b87541e3b645064a4fe11ecfefee9a4f004778a4139ff5e0b962a13 |
|
MD5 | 706bdf07d29e238ed76f9b5a1ac72479 |
|
BLAKE2b-256 | 980c42897ab3caad155dcf1a22deb16cea186a32967c986f7b403b20c5a6f172 |