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.362.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4640b2dad10f806c079f200c31497f624efe38a1231acb54f854d256193d417a |
|
MD5 | 8b35f0db3b6a441f5317e7a48e2cff1f |
|
BLAKE2b-256 | 7b6a581773c1e54a8b07fcee99cbbbc6a53a5a246ddf1069cbbbe32ab167863f |
Close
Hashes for pepperize.cdk_security_group-0.0.362-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 864d5c0cc434dc58ba203618167278720ebcc897e138915295700ecf8a60e7c2 |
|
MD5 | 3c0f549b8ce1cbd853c49ca61b36f0b0 |
|
BLAKE2b-256 | 0b79994e033852aa0c264a7da9dc295a3d9c15d020043b141f337e0f10a7e022 |