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.513.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40a728ab41340e1262563ff510ba0ad28af6983e2a19b5719534be13f586361c |
|
MD5 | 086183cb891a897da5ecc6d926c5fbea |
|
BLAKE2b-256 | 0c9eb8be2ec81ebb4f78567fdae8fa17a9844c0b3b37b84aa8790566c6d99ddb |
Close
Hashes for pepperize.cdk_security_group-0.0.513-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d9bf960643bdf74bcad361de7a75857da8302d238586b86a8e08647d26b79ed |
|
MD5 | 6d8f8c1d589bda1af090a7d30c4e7e72 |
|
BLAKE2b-256 | 96b377d3111ed2c27c9fa49deb14f3a24efca19c276765f29def4d2eba53d5f6 |