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.209.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 326223f9b36b10eed35c00e363a33d0d2c6bc6a331bcebc59e35590df8b746e6 |
|
MD5 | 8137b39a1e61df5795944efd12061551 |
|
BLAKE2b-256 | b2fb9addc497bd547ce87e4f98b72a035280e1a1ebf1d2be7f932356165c987e |
Close
Hashes for pepperize.cdk_security_group-0.0.209-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c74ea25d4de0fda536d5d1a54277d65f4fa6166e539e3509ac62647527f7418 |
|
MD5 | fb6e350a4a0cf6d8fd56f5cafb9c9077 |
|
BLAKE2b-256 | 30a4b3a6119e282993f7e36ef31decc86ca24d90222fce22acaa85993aa5e1e6 |