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.228.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7f74c7a47d267af0492abb5501016cc92ddfe99410f14a030304f01ea6098fe |
|
MD5 | 5dedf1f4f70febbb38ffda207b54995a |
|
BLAKE2b-256 | 0ecdd800681ea113698081550534fd8817b72bc814053787b7702be9eb60bea0 |
Close
Hashes for pepperize.cdk_security_group-0.0.228-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b478065e5bf1c283027d477a9afd0b3b9d74c7afe1ab56d50cd6627b737016d |
|
MD5 | 8556111e2514d95f05208ed2f1cc5d60 |
|
BLAKE2b-256 | adaad6ba484d2d9eb35043e36fb7018785c2d9bffd5c3930ea593b2b1deba5b6 |