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.189.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 341cfe62402d1ae8cc0b2ca37ed744d9011553a53048d8a1e5f6dfdd4cd7c548 |
|
MD5 | 1f21728ddaac7a5d605468e056d17d51 |
|
BLAKE2b-256 | 4b302f4b9bda74f05a97e3763ffc36478fc7d3ce7bb8c238827f1cbcb2405c41 |
Close
Hashes for pepperize.cdk_security_group-0.0.189-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e0287dd67d14cbe3632f8354f1a3bb85a512fdfd880cf97ee83b412a277ae50 |
|
MD5 | 4461460ddd735fe45e354a9986de1834 |
|
BLAKE2b-256 | 21ce669052ebbfcd30dcbc5f661389ed4d12785f394de0e6f81bbcf8aab94492 |