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.508.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7a1fdb10cec03efc195a37c48065412c9472e4b21905a8b6fcc2ddc37bd62b5 |
|
MD5 | 695bb2293408c977f2ef2436f1103a4f |
|
BLAKE2b-256 | 01e361d318a6e6cf2ea7cded7ea478491239e83b5ffec58fd0220b0e2eb0e458 |
Close
Hashes for pepperize.cdk_security_group-0.0.508-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e19c2f5e1f8e5ad30918948fa049512e5040f073222bbcc8d4c3b43bf781e398 |
|
MD5 | ae6ca175f83a288da16fe1f208b33430 |
|
BLAKE2b-256 | 2e16d415e5475ddb7d859e6ac4afe6f60a2658a38522ffe1020f5dc21ec4d709 |