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.310.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18c9a18c4bba43cd6a4cf573b81cb092d3a1e5fafcdfc30bf69b84da741237bd |
|
MD5 | f25721c9ed65d360eb33a8706149aea8 |
|
BLAKE2b-256 | ae5e7b2e1c9d24fa41bcbaa4d1244cbe9bac6d9bcbf8e66256af550bed063885 |
Close
Hashes for pepperize.cdk_security_group-0.0.310-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8294bf3db07b3898305f90137163ad49487ee99fbe501afb32ad1f61cace89b4 |
|
MD5 | c1212ae0a1e151877edd9a0c613e9bf2 |
|
BLAKE2b-256 | 2337b647b49a56fa9a38edcb823ea8adfa31b6d0c3641c02b09418313550c284 |