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.110.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e3e72bf1374606de7488ea1b9710675ae528dd7a4a7ed0a8531c5a97eaf55c6 |
|
MD5 | 3e5769ee531c4aeca90383a7cc660597 |
|
BLAKE2b-256 | 35af304b8cd98dc70d198112f560720634d3332c035ca2b34199ad2fd1ce370c |
Close
Hashes for pepperize.cdk_security_group-0.0.110-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee3833c23559c5214acfb3ec44f1a3a0b951249dc748eef9271b86ec1356ea34 |
|
MD5 | 064734bad1096838ddff65f867629567 |
|
BLAKE2b-256 | bfb229048bc8eb3931a751708b296746ab1296da218b308e2798c01a45f600df |