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.379.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 982b455a67960304b51f389bd8aaeb95d47525d1b0d9391b6125a367419a3128 |
|
MD5 | 87d2fff227f631c068cfe0f7ebff2f13 |
|
BLAKE2b-256 | 3ec000f1056c8deade479ea1426220b735167dd8f7b909f94dc22acfce73b81d |
Close
Hashes for pepperize.cdk_security_group-0.0.379-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0dcae3c5b0eabea767e05b9a130bd11b4c59fadd6f69b68bd37605d42d9f35b |
|
MD5 | d088d4ef40a6fe5a05d7473fc56432d7 |
|
BLAKE2b-256 | 0a5b072d4dbf00ca67269da13833a67427ae2794cad15e3e67da1fbd2243b2b9 |