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.69.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b988048cc93562b506d17371018e0a9489e0281f18b81b182a4264f506a3a0d3 |
|
MD5 | 320b30b6511d5718345332efd1ddf5d7 |
|
BLAKE2b-256 | 0b09c9eb5d42b0409c8273455406fbdbe03049b26675849df6caa2a88c3a9808 |
Close
Hashes for pepperize.cdk_security_group-0.0.69-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad5a1023718fe474a227bed954a6abdc14ad38a68c35f4fedf5d778cf713e790 |
|
MD5 | 05fc2ac0847f811af1c30c06c310058f |
|
BLAKE2b-256 | 3db313b587fa8a9f44ddddc926f8f7bb6340c323410d2b47c5f6b56f3f22d9ee |