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.207.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef41dc172ba70c9b2af4dda3d91ee5a5cafca4058565941f21bf4c6f5c866947 |
|
MD5 | 2664d2a2d91334679cc784a563677975 |
|
BLAKE2b-256 | c2b563d210d1a4111a7bac2ed64d8d4d7ac44d490788b3d3001cadae63a00687 |
Close
Hashes for pepperize.cdk_security_group-0.0.207-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9756b71cbe90a1a1bfe17de0c71012953ff2ed8ca9ab7e32d2c250c671c67b5 |
|
MD5 | 17b2f6b8e16b396a09ae3eafd3c6f821 |
|
BLAKE2b-256 | 13ef16767a9673511ab5b7cfb22361118d2f5de78a491911e58b316f9ec097bc |