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.112.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fab427f8db6f8a955560aa784dd6f0331c96c9801832a2991f949454b11ec7b4 |
|
MD5 | 898545b2669aeb0ac76a6e63361ed281 |
|
BLAKE2b-256 | ee01e03c3c6e7fb32f3c32ca62c725faefe065b78eb758d70f5f0b44a9bbb0d6 |
Close
Hashes for pepperize.cdk_security_group-0.0.112-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18695b4b01d043434560103955a2480d90af2b67f784c11bc6916521ea658db5 |
|
MD5 | d038f9361d129b0f701c95b1c27d673b |
|
BLAKE2b-256 | 1a4ea0abacd72909744d8564ace3bde0894a29a9598dd9d19ae7b4ff3c55fcb7 |