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.329.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cf7b737a670b79079c5d0b23fd27b1653d6ad818928bb75bdaeb3e07961a41a |
|
MD5 | 309367c73ed53e98d09c5ebcde8df091 |
|
BLAKE2b-256 | b4671fce7a514fdc443afe9d68a175002d2f54336a488fe7f3d02a55b107aedc |
Close
Hashes for pepperize.cdk_security_group-0.0.329-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b0b32058d61cb026d580bc8e65eaea6a111178649db02ebf75c9374746d0ab3 |
|
MD5 | 8c715e0172b4413798a8a1c66ad3cbe0 |
|
BLAKE2b-256 | 6a95dc2328c21dbae1d44700864b7104e1012e3568cc1523e832468fd69b26b9 |