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.314.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 350cbd4e4454e11f9a2cc8719864224d9fb1b8c73d4e573b997e9a0e4dc403c2 |
|
MD5 | f738d6dec110a4b79faa2e5f07669eff |
|
BLAKE2b-256 | 5126ecca87ae27067ddf654943bee63aa150359946099382c28598d1327d45a8 |
Close
Hashes for pepperize.cdk_security_group-0.0.314-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7dc6d4642b82060cc92b5fb77c0668f3f1e40cfd8f8ab32521d7757963bf996 |
|
MD5 | bfcdc03bb8ed70a18c86afe5948eed8c |
|
BLAKE2b-256 | 6872fd11307692ef4cc59c05390f7f7ebaa03503fd05f0671007e0c87447638f |