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.401.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 794c326a0b2e0edc3ee48396fc23cc69c7989e396d845cea09bbddd1a5afdf81 |
|
MD5 | 6c983e7a4f5ef18b09295a7c11b0d5a8 |
|
BLAKE2b-256 | eddf7f5167de0e31d78b0b01208178bf052ab91034ef715953a04b84aef307bb |
Close
Hashes for pepperize.cdk_security_group-0.0.401-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc0826827851e5487eac633cf161e63f7de0c7c103e883388a728717d338877b |
|
MD5 | 879cd1c179bafa5b1243602a40c7f7d5 |
|
BLAKE2b-256 | af48fcc78447bb37400e7b8627344a4e02c53065a217880d1e92bf8381a7bd7e |