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.291.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fe7ee27638d580653501f654c1269b4462823c3f397179a64b9c2a37e305cec |
|
MD5 | c6ce50839dac0af8e822fbbbac5e397d |
|
BLAKE2b-256 | 4e67172a145f5112131a64fce7e4ae92209339764a2df417a7ba2c1ea47077dd |
Close
Hashes for pepperize.cdk_security_group-0.0.291-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b2d898f6bcf1ef51ade2bfca9f295af4611c34577c5060232bea49fe9ed08a5 |
|
MD5 | 19753bc440d43773a9f1af83f0e5da5d |
|
BLAKE2b-256 | 5f7b54fd03a7f322c4432abb917d80f42c79cdb126493aa114264428db3a5160 |