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.541.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0da73f1f6e8570dd0f024020cef41b22570bb74ac95512a2500b123a8deff45 |
|
MD5 | fc7d727822468f3e45c413928dc8afb7 |
|
BLAKE2b-256 | c13ba8ea58174452d1860f8a8ace202d40a467b3bd06cce12dd389d5c921044a |
Close
Hashes for pepperize.cdk_security_group-0.0.541-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99a5e9e2f9c7459667559a84b0732b3b7b91e3e85b10e225b6adb91fdd7c51b0 |
|
MD5 | af8336daaa1b3e9d8a5413d61748faeb |
|
BLAKE2b-256 | a4630415931a489185ff3acb24ad8770b39418ba65844c5e2034c1fdf417f5d2 |