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
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.31.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15f5f92be70cbe34da8636e4767c2fd6a068bc6d81c7b9e08d4352d415e599eb |
|
MD5 | 2abdda1929bf2c537084ef6ca9bf5138 |
|
BLAKE2b-256 | f39ceee8b0d38e7a1aa5e253288b662cc1d9e94db6f12829c8e4ae11f98f3cdd |
Close
Hashes for pepperize.cdk_security_group-0.0.31-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b746db70e5bd752453d1dd3c9f5b2843a442793f7175862388b91d9c618dd618 |
|
MD5 | 9e5d8252e1d4550019bcd8474de4e49a |
|
BLAKE2b-256 | 32d097a92298c4a30c38c1817e694ee8aef4f9a3a6a9259109f4b3234347623b |