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.66.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f4611de392d989ad025b3b175b6af7836413be6df6c6993dcedfaf85f8781ed |
|
MD5 | 501325f3ee2023749d03c9673565564e |
|
BLAKE2b-256 | 3afaa1ff4409af12f745e7b7deb85d99f3e25a89723ad139ca80be3410150dc4 |
Close
Hashes for pepperize.cdk_security_group-0.0.66-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d7c5add3fcd79b47bc024d39454f36dc4c51c0f47c5f6ffe26bab59107ea38c |
|
MD5 | 64e8cdeba521ee210daa9bad72701cf8 |
|
BLAKE2b-256 | d11144ebfba53cb1684bbb4fce6443ec7628e32062b5e3297371948014b22a19 |