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.62.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25109513e898b2f8026bcbbf9c061a1fc7c669dd9a298246c6ff60ae099f4102 |
|
MD5 | 0047ad495d805efc9171afaebb18ad1a |
|
BLAKE2b-256 | 1763adbb8ab2af0ac867e978d64bcc9d03b782911fcc9e1adc117afb39f77583 |
Close
Hashes for pepperize.cdk_security_group-0.0.62-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4df1d5306b48468fa62db79a3970d977e7b0bd0523f2a9f02301a7529b1bc91 |
|
MD5 | c9b8487fa104442e73ad364a63401ff5 |
|
BLAKE2b-256 | 9af49d3bbff89780b8427fa1a0a2ad12fc115f322e05f9f41afcb40468820579 |