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.120.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5899831a8b5f0232dd44f6b00bb998697d544b1b2810d8797c8e3675a3431db |
|
MD5 | 0d446904658759f64c9c8276372f367b |
|
BLAKE2b-256 | 7ef332016d039e482184d1ee1a4208b6d251b5085d2d9d0b46c37789c30ab1f9 |
Close
Hashes for pepperize.cdk_security_group-0.0.120-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04cc2dd2385b1f9c3581cddc050e3d653208326131d4d89c23623a683ccf77f8 |
|
MD5 | 0c36ab7473ee44f2f14ee161bec1843e |
|
BLAKE2b-256 | f0e07a55ff032d15aa66c254c179733c3165ee812b80b29ced579d01f0b34f52 |