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.371.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd3bda1925fddcddea73461df719e17be2ae07f9969bbbacfb1ba3eaad5a51b0 |
|
MD5 | a4df882999c37debd3807ce14cab1477 |
|
BLAKE2b-256 | 53ea2c4c628302fc1d7db6f2ae2cb8f2eb45620d0f927b248ea26380ef9a83e0 |
Close
Hashes for pepperize.cdk_security_group-0.0.371-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 212800293c4bfdbd88c776d4c9e670df47a5c40671068ce6e51eea4cfab8fa80 |
|
MD5 | bbe899da226afdbedf14b0e48f48db99 |
|
BLAKE2b-256 | fa50e003ed8721ef724f7f429418bf8e831fd186adadac7b3b5d6f290a8119a9 |