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.300.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f338f39a7b21e93ec30d6ef4635371495b95f20bf2d5f30b4f712e847470bc9b |
|
MD5 | 64a8037e5aec0a5e218bb19fb7f4e1d5 |
|
BLAKE2b-256 | a3c27b0be3ae42ea92fbb990e8cd323ef1c3bb77e4a0c314d0bd1bb0f9b5267c |
Close
Hashes for pepperize.cdk_security_group-0.0.300-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38825b7f81f952184668d82541e689ddd2bec90ecfbef9c23414119e2f205060 |
|
MD5 | befd6f8fd7cc73aef74061bfadf51eac |
|
BLAKE2b-256 | 7c43887d5ee0382b1f1fe8f426563c60532bbd99e52a079f9ca55fbf59e5561a |