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.147.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba36a4daab53ac65c4c5053666c4df01e9fb50f645b0e8c3e8fa8834ab694cc0 |
|
MD5 | 06f76358faec8fb650fc9aca6116ed40 |
|
BLAKE2b-256 | e4647a403c9314a18306301d194d41fc957886617c746c584c1b1ee44cbb3b2c |
Close
Hashes for pepperize.cdk_security_group-0.0.147-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98a3e2a6b365752119a165cf831b6a79280569b40bcc4456d9106c949aa04398 |
|
MD5 | f8e44541e38752156a8db729c49f208a |
|
BLAKE2b-256 | 12f54782dd1d52797c63e61fa3baa797157b62e7824063334c4f28905bca1f33 |