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.293.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2240742d9cd7b655a5621805ed19fc81c16a75675a74bacb301888c972693419 |
|
MD5 | 14c34ec96a934148f26120298505163d |
|
BLAKE2b-256 | 5a5d2cb6b8211ef238baf520922f631cd4e8843c9234717c31e7f86060e76ad7 |
Close
Hashes for pepperize.cdk_security_group-0.0.293-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c97106f14f5f81bece11bb5d5f2c4b1228b9f1d7c8b3e81e14b74508f660fa91 |
|
MD5 | 07a39153740768b4a44fcaaaaca2ce26 |
|
BLAKE2b-256 | 26e14f07e8b9cf2c734df332a9f5267a272ee32650eec271670b654a1c20da16 |