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.290.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11c234e5245b38c77571897748135c9a07498cf52da0853a1352c731eae5ad0c |
|
MD5 | 7e6e6d3508540da744ec2d5a05efe0d6 |
|
BLAKE2b-256 | 6ab804d9768a3750ba8bbbdee7713cf44e5f641f23aeafdab0c014f19c66968e |
Close
Hashes for pepperize.cdk_security_group-0.0.290-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ee1661da57db66c915b151498477209614e0881c4e27a0543961f866117051e |
|
MD5 | 8a8bf246b1b304aed844b85b3002ce5e |
|
BLAKE2b-256 | 8c6009a3004b4688de7ae63523021b381ebd86be73cdd3ec51a225f3c0c641e8 |