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.109.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa76d6edb3c7c71f20af9fa91af6eeee10acda6d775c9d02258ec709855387fe |
|
MD5 | fc0ccc3f738a3afa845a701d74868c17 |
|
BLAKE2b-256 | 939eaa9026c830ea8dc3cee8ff048643cce2a4cfbc5db999cdd5ac04537af9f2 |
Close
Hashes for pepperize.cdk_security_group-0.0.109-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c5de4690cb9e16b9eff7613fd922a8e60802d0f70d1c0ca8e30632e3a75c197 |
|
MD5 | 5336202531a52751fc91179506bce0a1 |
|
BLAKE2b-256 | 53e1988ddc38b5d46e6ce21ce57b4216437daa46bfe1bb6a054cba36b4eafc82 |