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.482.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd54d8774c946ce8d0eac767ef76b303519e58e4d4e4bd601821ca2bc22abeef |
|
MD5 | c910ace40d916ef0467cf33b50062484 |
|
BLAKE2b-256 | 4e3d84c31990ba64364d689d72362a1a6072c17c8bfa72875d9049c669d3aba7 |
Close
Hashes for pepperize.cdk_security_group-0.0.482-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc721e486d66e56daa32a74ba655c2ba25585632579385071afebb10b00e65b4 |
|
MD5 | c7f681eb1ef70a9c8941adf532fd7237 |
|
BLAKE2b-256 | a235bbf15aac4a382b1466a906efad2584852b705adca174eaecbc3eb7058a16 |