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.82.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0036013d7931678a58bf424edf5a1804fa63003a2cfbd9a75b8ff5e8aea5e82 |
|
MD5 | 6303696a2397bbea32708d000309ee1a |
|
BLAKE2b-256 | 8da306c5348ff72dc0bcf469bfa0be2a8ec483bcbe2a8f3a8ab3498046185913 |
Close
Hashes for pepperize.cdk_security_group-0.0.82-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42d42298701fa40f86e8bc09f3a2b0fadd51028d1ef849ae29a1c0ff602e733f |
|
MD5 | 2adbf131198a25dec11f600d6483c888 |
|
BLAKE2b-256 | 8a6161095291e7ffa20ed35d3378e7b10c97bdaa5e3425639c047bbf07c2e005 |