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.74.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98f001a765c55aff33704e7255550c557918ffc56ff9e1015a9997d117bf04fe |
|
MD5 | 025760ffb0341d6ae6885ef6a7137834 |
|
BLAKE2b-256 | ff307eee05e2cb9214757e1f6e098ff28abae81f2969a2971d211699909aa3be |
Close
Hashes for pepperize.cdk_security_group-0.0.74-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a104e34ecad32dae144e73824e91adb3159717699a3f2caef3d57e201ce842c2 |
|
MD5 | 67860d2f2705b88808aa4178e3101812 |
|
BLAKE2b-256 | 8111e50e4de7b7f095c8f928b3799ce7372e4a6fdfe4a424339092c1d9d6662f |