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.102.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbd95e2fdc28377b278a396f9feec4762fd1a2692d0681f504cf7f84d5fa2977 |
|
MD5 | f714a5c61aeb2e5f90decbc90e2ce236 |
|
BLAKE2b-256 | 441d3eb6420f29164ad6b220316e73da1bfe45da5686ec35d8365e7e2ca9630b |
Close
Hashes for pepperize.cdk_security_group-0.0.102-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cfc57eb49f9ee9a93b5a0cf571fbdd2ce45d5237ce7267381fa2d26eeb37689e |
|
MD5 | a1e3541c0227998952575fb2fc1f288c |
|
BLAKE2b-256 | b1b670abd4fccddfadb7dd679d8e05939ac631fb5550cacfd91d061ff61ec029 |