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.146.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29c84057c24bbea5c09da73eed52598da4d7c53be42e65ba6a9947b439ee5c50 |
|
MD5 | b7ea086862ca08f2cbec2201f7cf8abb |
|
BLAKE2b-256 | eb2ca61d2f81d1f267a533252ce89e52ff9da18a56d08e3081329fcf3d5ec0d3 |
Close
Hashes for pepperize.cdk_security_group-0.0.146-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe7c3be9421a2fc2903ac02043c75fb70ba9134868d3d2aa2bbe84eb318150c0 |
|
MD5 | 53bc35bfc73ddb1b6e56fd2456b4e66e |
|
BLAKE2b-256 | af3e05181266d73faf080577b68594f0fd1d2a732ed06be059b60ea854a8c22c |