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.338.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d15cb96ccaae5112455f801a58095a3bd3acf359424686f12c15611ee61f1fa |
|
MD5 | 63ffaec20939841f33c1db2a83fd8c7e |
|
BLAKE2b-256 | c33500f48c94f8aaf774e01b32e30df8bbae2d117bd6aa5f0e33e973d06630f0 |
Close
Hashes for pepperize.cdk_security_group-0.0.338-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 251bcbd92ecda27b79605f9bb2b26f9aacea3486c5f1e1033964b400da693753 |
|
MD5 | 108fa98755330e1ca75ab56a12c8256a |
|
BLAKE2b-256 | 9a9c2f8d043cba35437e618aa8d7bf7c8e8c39685d889838bf31ff7af91b1bbf |