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
Java
<dependency>
<groupId>com.pepperize</groupId>
<artifactId>cdk-security-group</artifactId>
<version>${cdkSecurityGroup.version}</version>
</dependency>
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.369.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4cedf6c20450f5ba44539d179b500c44241f8b024c72a833e0e36a22dcb19e7e |
|
MD5 | faa7d96e27f2cd64890fbd5a87ecebc8 |
|
BLAKE2b-256 | b2c9590f309fef27ee54573837552fffca1d238814abe53fb513f755a402ff5f |
Close
Hashes for pepperize.cdk_security_group-0.0.369-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ecd2af16c062ba5e4f85311f70456ec9f3e9dab7f39a4f349b64f40ceb09041b |
|
MD5 | cab345400ac120173eb05d8820c2c783 |
|
BLAKE2b-256 | bbdd0c288ae6d6a19c37a8f5a30bb173d44a04b091d328769fa653de1b4854df |