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.17.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8153106248fc940329f5e4e1753693664b6c889f486cce48ef2310558ecb138f |
|
MD5 | 4dbf06dfd39e9255a9ab870f134a0d72 |
|
BLAKE2b-256 | 56306134c4e4edb5ca4027b41bd3e916b83a0dfb0ed69a53ae40b2a5d5027f75 |
Close
Hashes for pepperize.cdk_security_group-0.0.17-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be0d78efbbf9f26dc42937df7c0df2e639ec2c00e971808016943e45b965af8b |
|
MD5 | 97bbc81a7acfac7f1966f2ce73b07d44 |
|
BLAKE2b-256 | 19abc206ddcce85e377e5e09692f4754e59d6551325ebd598f8fa1bec1ec8e0c |