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.35.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9100d90e15dc3eee5b35f58eb71c77e22cd717260cea265658e35e82ddae91f0 |
|
MD5 | 015eefd36c23101d80b360298a6ba14d |
|
BLAKE2b-256 | 0ffcf2ebf94cde7d5bbb4f4d2769707848bb989da699eecdb58be5614342333a |
Close
Hashes for pepperize.cdk_security_group-0.0.35-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee3cec1e5e87dd6ef613105c55b928f97eafebd3b55ecb4a0edaf3d85296093c |
|
MD5 | 869f7a678c5100c78345a29018b92dee |
|
BLAKE2b-256 | 7a78ac5783ea9c86a651a7b3bf5f2ffbb5e6d8a4a8e40b2b8ac36e6d12ec8814 |