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.282.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c58e1161d0aa128f096af3e788ad52ba698ac6f7c7d488e16bfc1b5af781e75 |
|
MD5 | d92688a8af80400849b449cbad94edd5 |
|
BLAKE2b-256 | 73505f7ddbbd888f3c090bf8e908f1070b9a3d92b2d868c937cdfb95159bdcaf |
Close
Hashes for pepperize.cdk_security_group-0.0.282-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e7eddfcb7093bc9b9bcd328f2bc11dc1a476ada39da281c7de47d8f71972c85 |
|
MD5 | 44ee602c49705a20f44078cc0b3b7090 |
|
BLAKE2b-256 | 19fb5d715bfbeb81f58cdc54132ca941b3627bdcc7e677f923dd8302b4a49bdf |