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.93.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a257a60c2be837ff75870beff9182bf9c4031b2d7b839ab750368184832b2fa |
|
MD5 | e9d2ec9805344a388d9fbe2becabdbcc |
|
BLAKE2b-256 | 7a7f35590cb8bcc7016c2abcd7cfd6fa63759f8a5d38bc7cff7bd4205eedc036 |
Close
Hashes for pepperize.cdk_security_group-0.0.93-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1aae41291da04acab81d142ba98493c777c701664a0d54c601f3b299bb37493f |
|
MD5 | 98e85c949ed61685d6f6d120928c5115 |
|
BLAKE2b-256 | 38ea3e15f0ec355b82b1da68bbfb9f294a449cec9e25fb73e316dc98059a38f9 |