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.494.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67f41f6029babb52e7c3667cee8ec7f72bc3d0010efdd375db7ae54e13d2e6a2 |
|
MD5 | f7638be452b81e428e572388d8547981 |
|
BLAKE2b-256 | 99a504fbd0c692c86d20fcbe161de5991c19e143c65fa9b738c4bc26c4cddced |
Close
Hashes for pepperize.cdk_security_group-0.0.494-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8d4bd63a8864a2de2fbdd597c1d5707bb5990093ce62bb3fbc6d1ab51dcbcdd |
|
MD5 | 33d34c26e8190b2d478bf8a313044207 |
|
BLAKE2b-256 | 1a8d2a5124c284a239364953ad95fc9644f5cec8fb31b2dc43611bca1b69e374 |