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.57.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70e3a8fe1c78c22f58ff8a9db9caecf06fabbdf40ad98ebef39fb06ddba0d2e0 |
|
MD5 | 12f3319acbc4a63f4cb5f2394bad0db5 |
|
BLAKE2b-256 | 36bc081e6b89311c5e6f6c573f37f812f8817c8a1abcefc30d5e4826eeecf857 |
Close
Hashes for pepperize.cdk_security_group-0.0.57-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5556726f955d70c37b29fce885ba87c348ea2009ca55d81eef54cb42ad36afe3 |
|
MD5 | 772279de23205c4e9b19d92ef151b714 |
|
BLAKE2b-256 | 636cd2e0a71782ecc67251412a6265c5a2e46b98eeff78574d33d68632b611f9 |