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.462.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1e5da99b416c65aed3d05ef0b6bec8e76331411b24d44c2e069f965adaf3fac |
|
MD5 | 37a488b165483d7497a1e52b1804793c |
|
BLAKE2b-256 | 391ef4f364f97189ffc7e05e6f488253f1274707b0f07a515dd5858b32d5ace3 |
Close
Hashes for pepperize.cdk_security_group-0.0.462-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3cbeb7ecc18ab593c203528c13034300388e27d3c64d75d7b37222e2b7233834 |
|
MD5 | 681900f120490d0586d804b1cb844fee |
|
BLAKE2b-256 | 9583ebe94f0abebcb47d0879bf0815222926fbd62a2ccba0f63bf873de4ee86a |