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.313.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3eea907699fc5e60d9d4ce9c0f705ff58a6358c92725ef7f1ecb18685e2442a |
|
MD5 | 8230858ad1d85f6ac3e2f49a5a824238 |
|
BLAKE2b-256 | 07632bf24b99efaa7ae4dfb470121437516b41a43fe4e6a4eeb2e060f3ad1383 |
Close
Hashes for pepperize.cdk_security_group-0.0.313-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec1e09442c1aa64514d6cd4e3aa3c7fbe05885b54b61feb2d4b2ed5f39fa54b9 |
|
MD5 | 5122c7b976beb2aa925c56725c92b13c |
|
BLAKE2b-256 | 50b9992ae34a6e6aa4e2bd73ed250a4d22679c0384ad81a3f5070f2849f491ac |