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.336.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 481c069dcf558e10052a89781d6e8d94cb05923cfbe0bf04e74ac0aed4b03baf |
|
MD5 | c7cae7c7c68fbe638fb93554f824e998 |
|
BLAKE2b-256 | 79b697c2580a10af87495338b1eae460a649f5e1a202f5483afb6107d67c846c |
Close
Hashes for pepperize.cdk_security_group-0.0.336-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4b067fc9d14db0d6fbc69116b5f836921ad5dd63e2a5d8dfdadb186b6dfa437 |
|
MD5 | e56b62a1ba508a1b8a3c777a46becef7 |
|
BLAKE2b-256 | e4e29b4c614d01d01fb3b298bb9e4cbe168b239b1125cce39eb2150182ba63d7 |