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.87.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cdc29f01fc8476609d29cb043452a575df9be81a8d9e0bbb29008c57473325ad |
|
MD5 | 98ecf157e11980cfb5bc6a514ccae92d |
|
BLAKE2b-256 | ff3d6251d0004f42e4d2dffdbc5b6566708ba7f847d024684af78eaca506950c |
Close
Hashes for pepperize.cdk_security_group-0.0.87-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01323df3c55ff47af57f2a72fba9a49147b3d2bfec15660861f6b2a01d3245f8 |
|
MD5 | a915a9ba9d8f058736688d1f1b5e58d6 |
|
BLAKE2b-256 | c745ff413bc22e0ddc1149732121be1737338a68233e7ecc6542fa34a986227d |