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.60.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9134cab98208e9fbb6fa368467986a07997732349d84cf06c31e6b8756332e9 |
|
MD5 | 9c3213a7d1f8fbd43ac50aeadb0f50bf |
|
BLAKE2b-256 | 53dad8f28b5ecf543339b4699630e3b3c475edd4a0568889e31e4f55f960e77e |
Close
Hashes for pepperize.cdk_security_group-0.0.60-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2442dee42cd1d17cb5180e4a15d37f538980a41913ce90218cdae7ba4de5c90e |
|
MD5 | 3f223ed920e9d955b73d47a06e529d6e |
|
BLAKE2b-256 | 63b0e5a30d630eb70ece4fe0cf11431aaff6648c80c35e99c20bc8c41a6e6096 |