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.55.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2997b5af2c93a62fd14c06a19d7e0ff63e6bce539086dc21a81909d892a82031 |
|
MD5 | bfd45ed82bf3c7811d56f6aa471f408a |
|
BLAKE2b-256 | 1a229439a663d9052c471da0c09d158ae007d71ff5f43c48e0742efeb3669161 |
Close
Hashes for pepperize.cdk_security_group-0.0.55-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7eb4be4605c13ed0a6d1640e1204ab850de994513037dfb4d88c962d76bd339c |
|
MD5 | 096b4a7e4eda9ed4cb810ce7b6846374 |
|
BLAKE2b-256 | 5451d16c61eea1c851eb81ef9ca3c4053014e2894f3abf4d57481cdbbc885af9 |