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.44.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1686bbecdaaea5bb9ea3dc8061e5ca10b54a84ff2ebd1f280718f5636cc502b1 |
|
MD5 | 853d6f4989b5145c6d1e04facfc351f4 |
|
BLAKE2b-256 | 0f3442862eae918127f79fe3debb3c29e91004baaf540631be68457b812c9a38 |
Close
Hashes for pepperize.cdk_security_group-0.0.44-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c70a210c87a5eab97e35bace746aa3ba3d4fec2a392b59e4c15e80c82cffaa4 |
|
MD5 | f7abe34271bea733ba40c419700122d1 |
|
BLAKE2b-256 | b3002b144d6095247e26fdc4141cb4a8c483d5629484423b4457a0718b1d4d01 |