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.203.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f289cfccb2b2215f6ad640c908f3616da9dbc6dfbb78cebaffb991af951598ce |
|
MD5 | 743a67d775a794fc5c79a6cbf8a2065a |
|
BLAKE2b-256 | d82d01d1109af5a4cba12753035eb4f601fa217c4f3f43df708a8ff1131c17f6 |
Close
Hashes for pepperize.cdk_security_group-0.0.203-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96548d8ab22edd8fe7a3b93c77f631b263042934dd2aa89e9f02f26a0eb740e2 |
|
MD5 | ceb733b8e15a9d1d57b565426e0005d8 |
|
BLAKE2b-256 | 3ce22decca619d08d31a0718cb35159b1cc632ced7a9a3c8826f5dc1308d8ed8 |