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.96.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00468e15f3aa6a7d4b3f451ad87f1fbff3f037c01530481435e5825e9b72286c |
|
MD5 | 3509ca268c5e93528d1efb88a3483338 |
|
BLAKE2b-256 | 7ea49e56fe6ca59e2f9702a21324c9269550ae5988435630b4ac2c8104a9b316 |
Close
Hashes for pepperize.cdk_security_group-0.0.96-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 908fcf2001abc9e72843182e30f89778e3208f7af7d2d30b434ba41384cf19a9 |
|
MD5 | 7a97121a654d6330b84fb9fb6f9d4bcb |
|
BLAKE2b-256 | 23d70e87a2eedb1fab3e21bd42ff4b96c9b1bdace3f217f1390670237659ed10 |