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.24.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5c4d12fb542a7c88ddc49e11956855ae47a22e462143cda5dee1cdff7637ed4 |
|
MD5 | a9eb591fa5a3ac33a5a2d70c506a085e |
|
BLAKE2b-256 | 390ae39c3144f77e1d771519406ed96142e6a2c88daf03a9468faba560aa1de2 |
Close
Hashes for pepperize.cdk_security_group-0.0.24-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b50b28d56c2c215fac2b57bf5de4484bee68a326631fb2fec38892837c59f50 |
|
MD5 | 7d7fa54342b6e2c729ce1a910f45d37f |
|
BLAKE2b-256 | 689367f87f46521f4147765e141dce1785c45b38fcaa6506d5ced7c7e40e991d |