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.83.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a22b18ab36ab52ec54660117ffa750543cf82ad6bc9bb2c0c3ba4bd271bc5be6 |
|
MD5 | 6cc23aed2cbcedf8384744caa3b62e01 |
|
BLAKE2b-256 | bc30f2447de8ddb05996da1082d908b64e65f342f3709c6671ecb726aec6b318 |
Close
Hashes for pepperize.cdk_security_group-0.0.83-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f6ef866ea9e62620e1c027e8fbba0dde319b690eabc0228cd53d97a36132c5a |
|
MD5 | b464cad0cdcab4b5438490492eac1951 |
|
BLAKE2b-256 | 474edb08867ef2820944d9044d43a75ec551e222cb06b493969a9e0049ed6c08 |