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.431.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93acafdaf297db66c22a3e805544b896461e1c85ccff678a86a06a5020948bc4 |
|
MD5 | e0a09136e932d44964c198112599451a |
|
BLAKE2b-256 | 4c8473cbb6e4a5954ed3cd4bd29e600d09f3ba7860feac663f9abbf6073d7ecb |
Close
Hashes for pepperize.cdk_security_group-0.0.431-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0df04b76ee383c32c666cf91b7b1c5320371f3e27b5a56bfd0e799bd59a3105a |
|
MD5 | 7acf2359a934b4ce63f73a9b60310e97 |
|
BLAKE2b-256 | 52a5da01dfdbb3a5552aa974ec567bf12580350b1759e512e61d02cabe405499 |