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.206.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c68b4c031ea6fd01e57a54a2f6b37d17486e138f3d5990b8b5b1510b03d8cb2a |
|
MD5 | d87a32d13c9e85dd865d3f87f7114414 |
|
BLAKE2b-256 | e90c7faf821a86a9795d7a2739310d8c21851324fb0d3ed366989d5d11c497f0 |
Close
Hashes for pepperize.cdk_security_group-0.0.206-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01d8cca728d3a4210ef65eaf143e751f1cfa5b5e5bc3966c75a3af2db9f6f67b |
|
MD5 | 62f3f141733b51e2c8a5b77084c8e4de |
|
BLAKE2b-256 | 72d7387958635fe0dadac613651e46c79850afd1b096d026220a8fd57883014c |