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.42.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ef42ced83e663f1b6ef5e33776d3417e104cecd43d37c5c5763197fd634b5a6 |
|
MD5 | 13b355cf24eaeaeb150c2c433dcbabf0 |
|
BLAKE2b-256 | cef688aff5ba1a414390a1ed65f8f8556f40756fd5463563aec7cc09dbff20bc |
Close
Hashes for pepperize.cdk_security_group-0.0.42-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0c2f7830c5842f075331f2bb3eaf3dcc391632b0897a51887259076bb7bfbca |
|
MD5 | fe6b138cda00c28788f180f7fd14a0a7 |
|
BLAKE2b-256 | 25fee62ad22dbcdb36507e0be6b77de95f7bfe44145dc63ae76dafd2bc178c33 |