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.61.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3fdb9e00856ffc662472de0888e26b72d34a868e07b36ab4556fda0b9876bf1 |
|
MD5 | b74c89bd2ec38dda3f63cbc2ee505783 |
|
BLAKE2b-256 | b03dde5bb34ed6e01e7518b941e67d0dd1c2935016c11ef1b9f0199f4fde2539 |
Close
Hashes for pepperize.cdk_security_group-0.0.61-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b696dadc1603e5ee7416d1fa782145abe8b39cbbac01b0adfe73a72aab4590bf |
|
MD5 | 1bb28edf6c012b41e948771e2c37bcd2 |
|
BLAKE2b-256 | 9cfe528ce76d3faa0539067ccba3ab6b79c24fbf4fd89b8668de7020816c7e2f |