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.549.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11e71079d328ef8a50a9eb14150870e547ed22d4c83bec856afe4de8889f7d75 |
|
MD5 | de685f37148e86ca23bc2aa0ea09bde8 |
|
BLAKE2b-256 | e3b810a7d3679f77c8bf6815ea05b0f9197575801714f3c8606b49f2c6bc3fb5 |
Close
Hashes for pepperize.cdk_security_group-0.0.549-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ed0787afcad3333464184132a2503cac716e43b531cdc675ec5b78d1df01b78 |
|
MD5 | f4f5aaad1fbdfdd12c18f24139e46c8b |
|
BLAKE2b-256 | c747e4cb746fe9be066435531ce95aeeebc0ba1a2c2f849f2465b5bb57fe8071 |