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.38.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26d8f999a5f5000c0c78162d6c8359d3012cd0e68f479af4267ef6e8f0187466 |
|
MD5 | fc19fb61804f473cade3797e6961ea84 |
|
BLAKE2b-256 | cc4cb2b8dbd5ececf436f0e411e531a68d7c926c47480454b0dc05a3635b953a |
Close
Hashes for pepperize.cdk_security_group-0.0.38-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c7ca31773937b3c71b8dee665ef0e815e752fe75fdafc080abed07fdaff8b35 |
|
MD5 | 29505706d440f88480ae97a4bd5db8e4 |
|
BLAKE2b-256 | 31944dede87c585df5d5c85f57ee099ba3f1ae6744046f7374450d64af0c3731 |