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.29.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | be57c29cdda8abf092be36184156f4d7b4198d37945fff2cad8a99330387c0b4 |
|
MD5 | 247276605de5f37e07f5eb314f9b5dd2 |
|
BLAKE2b-256 | f9de6919043e8e10b21af6cb7dd8608a1dc7b8e325b44ec4198060223417ca1a |
Close
Hashes for pepperize.cdk_security_group-0.0.29-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 383f244b7a1eb4ea65fba1857907456f57e55435b03d2305a0f5c3f77fa643a4 |
|
MD5 | eb8cb12aa0eaa790d0ca3464eaa833a1 |
|
BLAKE2b-256 | db6da4c72f84fc497159da42d4b6ae73c1733d7dbe6022f7cfc71c70b4b8589e |