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.52.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2d7dbe461d505432a892b1d44362b0e400f0df4661aae7fd982a94682bd4674 |
|
MD5 | 3c43d697e08819a6d7800430a0c41388 |
|
BLAKE2b-256 | b936117df44872c2bac85180349afd9ee366f42675b8caa600cd334b3a0274b3 |
Close
Hashes for pepperize.cdk_security_group-0.0.52-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92b65252df3d687015eed55aee0971a533714df6f37acc4dfd8af269d361b78d |
|
MD5 | b6ee8039c498240c938657e974d35f29 |
|
BLAKE2b-256 | c266a3cdc0cdc9223c47432a1c0324755c7abedad46c37ab7495cb55229dc8b2 |