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.180.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d321f07917d64199805a35139d99cd267e93e7d96db5b983c5357c14853c937 |
|
MD5 | fec611f4376e10de3fb8eaeae210b594 |
|
BLAKE2b-256 | d7596a0ab92722c0488c11d0450766be90394c236c939d87902d944af77130af |
Close
Hashes for pepperize.cdk_security_group-0.0.180-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ddb8e3af5151dd5a7853596985080e791e7051c22fc997ee745cfa8b1355941e |
|
MD5 | 97f48003edf9005a68455049f9f18738 |
|
BLAKE2b-256 | e60124009cf8748a9f882b803a9c6218ea22a9dc19a04aa3d76a314828aef0cb |