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.27.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce8876937e027a74c609fac40915a13855981dd4102c6e6b72b31fef7de53730 |
|
MD5 | 94de79725760364b742b16c821e49bb1 |
|
BLAKE2b-256 | 589e8cb29345312e68d318b9bbf7a260eef0f7f4c9400005c0bc43e9382de1b0 |
Close
Hashes for pepperize.cdk_security_group-0.0.27-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5af5fb8d8cd0e1e7aa05a77c77ed52e3606f0fde7ace9d4fa304a2be3581aa42 |
|
MD5 | 29701311bb9d6cb2b79f2e95f0793884 |
|
BLAKE2b-256 | 9e7e818f02ff1494046077f8c47b3a8e646ddfb4bc330dac6728b2a3e3ff0750 |