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.332.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8a3437ca03c72e6f616a3182ee9cf6d4a88df61d0114d59855a841f3b3531cc |
|
MD5 | 9eec973df63f4f833c40f6132c459883 |
|
BLAKE2b-256 | 1d7df47d253a84948c2f00fbbd5296487efb207ef347a78d8f9218398fba50bb |
Close
Hashes for pepperize.cdk_security_group-0.0.332-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa1bdcac6c0f6f985bde09cfc65404e018ea153c03aaeb447182aa0f99eb9005 |
|
MD5 | 367e39f6a00bfbba53b81b9d773ac862 |
|
BLAKE2b-256 | 08f16fc4dab794a892a51382ac68bf3fdf73b9bb28e9a761c1bc8842a9cd5a3f |