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.36.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36844e9d6a61a5748b65b11ab3db43f5a126470e04a7ec4ae0a3c362c7a4c611 |
|
MD5 | 53cb88aa54fe48395dff63c422472b03 |
|
BLAKE2b-256 | 52e4abda5591217903cc43ce05272bf4d4e03844ac77db99a630891fc1e39cf3 |
Close
Hashes for pepperize.cdk_security_group-0.0.36-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e1ddc6e83509cd3e0816ee78785d50564c4aa5d5a33ece564c6e75293cf5231 |
|
MD5 | aa3397412d305768ef85765bd50ecc9b |
|
BLAKE2b-256 | 42d26afcabe57f92652d790d551d978262daa662c2f7045f7d1f5920ff3c2e47 |