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.84.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a58732bb0c1117653169f21dfb2b13f20195639a5d3d29011dc2db9b65731c53 |
|
MD5 | 4f27a8c7a205be447621bbbfb204b3ba |
|
BLAKE2b-256 | e15546694c4ed5c233d88a790b8704e8f00862bb513c5016d1adec08e37fe697 |
Close
Hashes for pepperize.cdk_security_group-0.0.84-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d344cdaa8f99dcbb93b38cdc362b6b67e96d87ea2d6f44bdb59d1f9983ef3b6 |
|
MD5 | 70faef7f311ae085db36d7b61998a270 |
|
BLAKE2b-256 | c58bc84530c678cdf9b35bee643f5abe6c76d1c54b5f06ff1eebb9f7ec68faf0 |