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.23.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8ef2d39416b5265d2de3ab2fe6be5a6544b1a8480b9fac92f50a919d5115dab |
|
MD5 | b9e7147d10d8c081da360be798c50f49 |
|
BLAKE2b-256 | a5df22eef333986da3c3b2f3c3325a265bd721c6daeef7e0eeaf8998b4d19d50 |
Close
Hashes for pepperize.cdk_security_group-0.0.23-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da4e4e4db69cbe409d56f6cf461dc054eb2dad10ec78cae8753e10d5444403a6 |
|
MD5 | 3696d875d8541dbcd2e4b59811a56ebc |
|
BLAKE2b-256 | 5d9b0568c1c4661d562ea0bb75993bcbfe77a1295a5fe42ed9caeb7a1370deb7 |