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.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | db6f2f5c8e58dbd3f2a96a57694e94a1d7cb9ce081ee1ef98ce1b7f175902b92 |
|
MD5 | 89c78b5949ea03dfd8cf82b60489ad85 |
|
BLAKE2b-256 | 1336534399ba31be65db2662b6524c8922464ac68ae209ab31fc09f71e8df497 |
Close
Hashes for pepperize.cdk_security_group-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78eb5987d05ad147e26c2db0741a2c2ea5a27abdc9a61cd505eca9e9e7d44637 |
|
MD5 | c9302c5a625995179adb2ce894f153ae |
|
BLAKE2b-256 | 27a2e5379f422924521166132343f9e444212613bb12e4b03c0e7d418bf4ed6c |