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.281.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee99a79b1717fc9de7d0736cfd2024e4abe315b478e625aba9d697b8ceeca27a |
|
MD5 | c298918edcaf8e6274fed239b78aec0c |
|
BLAKE2b-256 | d69ed64d292e30043ddf47cb80df81a45b6443a58b010cb9719855a3ecf3f44f |
Close
Hashes for pepperize.cdk_security_group-0.0.281-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a49cd3661cac63cdd5c2873b6427f00195dda3e1d57ebb85e3076c14222b08ba |
|
MD5 | a58fe666b272872e344ecf47144ae462 |
|
BLAKE2b-256 | 8ade2524149dc2036eded4edf27cb595be19aa35d0cc9fc76483c903cf412cc5 |