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.387.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d136e7830a96f1723bcf6216b6b7050bbfa15e7fab6f26800cbdee0a6d979da1 |
|
MD5 | 2891446281a87cef88290f966dbdf349 |
|
BLAKE2b-256 | e440022b9bbb384e69d4b019bb6e3e6f13ad949a0f6bf738e7e0131fd08690bc |
Close
Hashes for pepperize.cdk_security_group-0.0.387-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4ed810172e1bfc2b91d7c637f52e165be23488cee9fad6392af7b84bc459626 |
|
MD5 | 38e572a1c83cb73e0c1f91eab00015f2 |
|
BLAKE2b-256 | 9806e9107b730da8da9f2c4250813e599c27ddda04f8b011d46de46f24256eab |