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.19.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c0391d6f24d5f2663d65cdefe43099e3aa01f69f02e0932649b4bcc268c5064 |
|
MD5 | e4d0a5da8a7ff7ad397070a9530d3af5 |
|
BLAKE2b-256 | 5518d6e2674e076060a827e86a504d8f403a23003ad4bea5cf4ff28aee28cc43 |
Close
Hashes for pepperize.cdk_security_group-0.0.19-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e191c5978480e8c9f5387f4dfdefbb58fe46b2349f3c026be8c9a7ecbff941dd |
|
MD5 | 995459bf56d8c0fa1a6e50c5380bc0f3 |
|
BLAKE2b-256 | 53dfee3162068e1de7a06bbaadd4eeac2a2d758f69ad875f9da501955f48630f |