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.420.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2da24c2b1893409dba579a20088e00630182e164715bde1d89e3fbf9b443e46 |
|
MD5 | 29a7e65d8c2dd9d69bf00218a2336f5e |
|
BLAKE2b-256 | 8d25988b169ca21d35bad2e4f2bf4a3ed2a9548caf941a97d0802040ade0ba0d |
Close
Hashes for pepperize.cdk_security_group-0.0.420-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ecc2726e210974ad4b96dc276ae203513e0ae36a36be0f2b30e116e38fe92052 |
|
MD5 | 106121196758901e05dc516b85884f84 |
|
BLAKE2b-256 | be0e39b6b63c596ab9da48496fce2093811c161256dce2306bfa7fc65f941fc4 |