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.552.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd69e57e75689890a9f23df4d5ceb2158d5c819d162491a058bfdad3c8adb724 |
|
MD5 | 3cfcb5e8a5c080fc39f377921b90586e |
|
BLAKE2b-256 | 029732f9f4dc8d2a929a156bed07ef558ff9f3c7f6ba787e1c40d85efcc03b7a |
Close
Hashes for pepperize.cdk_security_group-0.0.552-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f59113946c1b172736d11b228481fcb48b8622fe8f96e1d4c595a9f5c01ba842 |
|
MD5 | b766157f72b811c833454d296a4e2f2d |
|
BLAKE2b-256 | 96fe314d7c68268e24914d97cb2f8c677c4d29e8e53df710a168fa0e2a1c3284 |