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.229.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0107e75f135ed42641cc3fabe50593d67f0bed1882986deaaca4d45435aa8173 |
|
MD5 | fb978fb88bdd98dbc4d9501a11286976 |
|
BLAKE2b-256 | 017f512656c0d6345f882f11a8f8aec2ee5714024fbb4a8d79b0ce5b6f355bf2 |
Close
Hashes for pepperize.cdk_security_group-0.0.229-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c632ad22c59092438b08c1a184483132466350ed536242cc5503d6c8f33b34e |
|
MD5 | 8fa370b18090f4572a7b5e2fe1769f3b |
|
BLAKE2b-256 | 5de2e64fef06202e6a8611c46345b7aaf883d768490986ff37360cd34054cd95 |