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.297.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3b54aaa8e3817b304b7e60fc428cd9651c7fa5b6112eb91eb451630acd63497 |
|
MD5 | 720870ad6a5b0b2d5dbb2bbf1d0a91a3 |
|
BLAKE2b-256 | 3cdd15377a117366059ef62b17755484ef2a7a2bfbe625db65bc704a7c2b4cb0 |
Close
Hashes for pepperize.cdk_security_group-0.0.297-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff9fcff86d4d90adc70104e260bbb5ee85a00fac811f59df48d94a7a04947952 |
|
MD5 | 710d6081b77bed74af98f4ef98c0c43a |
|
BLAKE2b-256 | ebd1a8b2f0e790434244c7468fda72daa2418e8d4b0694d93f734f624e8a85b0 |