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.80.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4cf64c52cc8fd7ecb9f5ab3fd48f45ea54119813a45a3d0bda5c3219bd3d5f1 |
|
MD5 | fb702678e7f886682a6319520f0b065b |
|
BLAKE2b-256 | 36d1c8cacb7de772d14c86f6ce47831da19c3a04463d3d75a8df4e264dd992c0 |
Close
Hashes for pepperize.cdk_security_group-0.0.80-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 692eda93d4b8e33a336cfb220033cd1c1e1661b9f4e9b37c42d485d717843c87 |
|
MD5 | e4bdb59e3165feecb41c997218bba070 |
|
BLAKE2b-256 | ed7be415137b7bf294a198934549389226b542e264aa4df9dd4edb8ce0a3d641 |