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.58.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e30d2f2a82298506cdaeeefae44b2e71fd5ab3394c62d0bb0ea9afe8f2b7729 |
|
MD5 | 89293fd4017fa2ca574124494c4aff81 |
|
BLAKE2b-256 | 289bfa66131fd55de20a7a07e76c42d862110d95a1d8fd33ef4a95e46d5f82e3 |
Close
Hashes for pepperize.cdk_security_group-0.0.58-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c945d64076808bcceddff103d7ae4cdcfe0ec228951c90a290d5412075375cdc |
|
MD5 | a7f5eb732537fbad6f42ea555793cddb |
|
BLAKE2b-256 | a2d5375fb2d0ac01a9f5ee4f0e7c0a6aeac0862b3a1f301516f466b8bfa835e6 |