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.312.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa39fe4ee0e910887d3974ee1451e3013cff052296f851b0e7d428486715a67b |
|
MD5 | 022398497cf02ee44714cce48aebe864 |
|
BLAKE2b-256 | e21a93f4b1a184bc683532379f29fa3fdc58311091ca58cfc9dcf1e29b163ff6 |
Close
Hashes for pepperize.cdk_security_group-0.0.312-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17ca84cd54c9150c3693699d8027e4562bf90fc6c83a7ec96fa8d274c761d85d |
|
MD5 | 2f40f2b4cf1ece004f62e098e3dcf211 |
|
BLAKE2b-256 | 36fc46aaa4539766bf6c5e9edd872e1d97c7bb0861ece8663f989adca6197b29 |