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.153.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d7721fbed5fc7f5ecb81114986520f621e3716c6a3e603ca3431ae37d6c2c9d |
|
MD5 | e8b6c4cfdf5bf83a27b5b48eaca36503 |
|
BLAKE2b-256 | bad6af55d9570c4fc1cad0327c7da2be0f55412a6d36793228ab2af76a39308f |
Close
Hashes for pepperize.cdk_security_group-0.0.153-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ce797c609604e2bbd5f4d91c92bb6acc108c7a38976a4f12402b2bbe229a219 |
|
MD5 | 1492ff80b48aefd1603d75d198943d6e |
|
BLAKE2b-256 | fb95c671aaa745a3851f03798090da6455e7a04b6168d53b046a4f59a7063842 |