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.20.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 328a2066cc111dcd8c72e11c916508c563b3fbe7660f38098b413d29fa703e9c |
|
MD5 | 6e75d88a9493ca4b8441ecc445834fef |
|
BLAKE2b-256 | ec97bbdeab71336ffe53b79107895c9bac3f15d17badf1ba1f8196fa544039d5 |
Close
Hashes for pepperize.cdk_security_group-0.0.20-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fc5874ee0053200e9b2dbc12b4dcf0300ad74dd27f259ecc5a7bdc95a65d41d |
|
MD5 | 5c6e32f9cd69e5052aab92a2d05282e0 |
|
BLAKE2b-256 | 0fbdcf61cfe3a25583d7280b62fd8f53847cdbb6e38d6574e6c07d1836b1f540 |