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.95.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95ede69e10d7a43b6c0bf88ac7e734a2a80e7a54c3a7c1a6f4de626723b03069 |
|
MD5 | c96ec900845809ac441be254d7d6e945 |
|
BLAKE2b-256 | 737da22bd52d9d1c744d5729d520232b13d3ddd9bdf32fe7061229761a213aaf |
Close
Hashes for pepperize.cdk_security_group-0.0.95-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b9fdf0933b490fe45950832b8f79c4d3ce9ee59e663b814c4fae412b50242c4 |
|
MD5 | df772879428c154613c6a4525f87f0bd |
|
BLAKE2b-256 | 7c4bacc30d1ae4088f13e7023920b1bb4ce9880cfea5bfe8e546b6d9122e0e3f |