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.75.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7bd1876037985314031beb9ffcc4bec1e8bbb470a3f6cb9a2700c3a5a6a48da |
|
MD5 | 4c0131e8f78709f028eb8ce04959e98e |
|
BLAKE2b-256 | 7f2cc3c535bdb6f2a9bd3db747a48c77cc0b53506ffddcaf1e2394ebf4b48859 |
Close
Hashes for pepperize.cdk_security_group-0.0.75-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f1d400048a0c3cb78c3c293cfdea01b348f351df625ada043f2ec79028eed5e |
|
MD5 | f8414ef691dd78b3a44b9cb2ad0cfab1 |
|
BLAKE2b-256 | 935c6c77daf0efa5802b0dc6b256958b429966d91ccc420de5961caf44c6fe6e |