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.461.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81e2dff501c08f847ae6972267225ec0652d37c7c1c571e433022509bdbd4fe5 |
|
MD5 | b03bcb586b14727c90e57ce585d23935 |
|
BLAKE2b-256 | a6a4cbf6b8e18ddd6f1ce52c79d814bf0a084b16a549955b0ea2f7d38d123281 |
Close
Hashes for pepperize.cdk_security_group-0.0.461-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce8b47fef4def31f5e3c8d2fbf69c3e0036f909cfe512a5e7eda83fe83a2f113 |
|
MD5 | 782ee13ee602bdb4075613c6325a808b |
|
BLAKE2b-256 | 6437749fe8378a18fd452e956b4b8e75ad5d91b43a3bc2e73c1347d37149bd9d |