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.144.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba8ba0f3fbceb980ba489b6d6adbc5a410c0e5607ad8d864fa31a96c8313ccce |
|
MD5 | 8a58ef33007f9f103c745a9cfcc32b7d |
|
BLAKE2b-256 | e7245f6ab997edee4fdf07a4ad30e865e8d8988415ad48f14218ddf1d8263894 |
Close
Hashes for pepperize.cdk_security_group-0.0.144-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f85b298b9cf55eba322fde38876e85538d06f299b1caf4751d8b9e2c7fa9880 |
|
MD5 | c4f82c1383a96c43fa6bfe1442e739e2 |
|
BLAKE2b-256 | 928adfcba4c414b80f370a090a85dee3d3166f021e67d5732054f4fab4cfd1fd |