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.480.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 278124767bb413008410aa32a44d102e11204ebd5f683c90e8df098e33ea500b |
|
MD5 | c5bb1ffd426062783eb27ce9e57ceec3 |
|
BLAKE2b-256 | 90fe1ffda0760b4bc29df57dd603791e540d50515b7cdff2fbf8246c775cbf56 |
Close
Hashes for pepperize.cdk_security_group-0.0.480-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c105d7dc3d33816473258e781b92d0a813b4680a8e82424fe3b23abec688c11 |
|
MD5 | 0d1948264ca4d16ff2187ca6c083f39f |
|
BLAKE2b-256 | 6d348e63c750142804679fac5138b6d11142cc288bd53b09f1c30347ee77aaec |