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.148.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 029da17998ceed33e16ab06b042e1b1d78eb4594fa5de3905f165044fd5d69c4 |
|
MD5 | d4cee2c05a9e3ef40b1b3c6a7746e6e9 |
|
BLAKE2b-256 | 45d084041a15be9b64c14bf3fec18454a530610878e0c46e3c8a516cb1e3a34b |
Close
Hashes for pepperize.cdk_security_group-0.0.148-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ae66d9f467dac85c333ab29eb22db424b958e6cbcfaa369fcdf9c7d1aa523b9 |
|
MD5 | 3096c4aba70f32f9bacc377ed5f83209 |
|
BLAKE2b-256 | f43e153c7bc0439b36fa799335cb798c7a2c47503e961934f9e8c6b937bb48ca |