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.128.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2567282ca1c0447dbf6e8faea3456ec7cf11706b29ce9acdd01319baf8cf541 |
|
MD5 | 98d17f4d600935115a032960031a0e73 |
|
BLAKE2b-256 | 4f42eb7ce329832a5d7fb4e1f323d3be9a3f1966ac89d2732af071017bf5fc95 |
Close
Hashes for pepperize.cdk_security_group-0.0.128-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbc8a97be05b8284f8418674db28077087627e27b7e944028c1ad419d091904f |
|
MD5 | bc69471a0afdd2062a3775efd6882972 |
|
BLAKE2b-256 | 60233f5e22bc1beb77499aeab2327697fe47e18da1a0a1694d32881cd117a60c |