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.306.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4c92cd8efeb803768fb9578f1d9401d1783dcd2746f5829fe6c4220212ec868 |
|
MD5 | 35ab29d75e4e0d26446e8ed4f81c8add |
|
BLAKE2b-256 | 98d0c8f76f4f926259b4b414048e6d9d2c8677ecdd0e9fc2ef1035441ae4db7a |
Close
Hashes for pepperize.cdk_security_group-0.0.306-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e05f687f534e649b50b2e95365caead9f5f4578dd2f9837f30b94add4bf0bb9 |
|
MD5 | d3ceacdd37c6c6c5a45fa12f8aad3265 |
|
BLAKE2b-256 | 1b433589a0b3575d817fbb85d761bdad6f582293c816548a479a01199d709ec1 |