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.18.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99b8f082bce1c2087006e128a461026c3fd108a371fb1221a66cd77681d50ac7 |
|
MD5 | 6a3f1f4ad951821c75c724fda01c7222 |
|
BLAKE2b-256 | acaf35f1bb24c05474523d3a2ba1c8c4ee92ca0c4599c16ee05ad970f9d70c93 |
Close
Hashes for pepperize.cdk_security_group-0.0.18-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 068fe6b331cfa2ba70301197238f8ac071133098b3ea929350b0e3cbf2a8f3cd |
|
MD5 | 77d9a0a646fa7a4d365cb7f3b5f97c0e |
|
BLAKE2b-256 | 2a37bb80432f3b89ce59a5d40573c9d6b7878d237c0f88e6dd63ef171eea9544 |