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.432.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7367068a7cfdf23a4ae556542ce014d111efde89bbca1760b26e6d0c6e98faa |
|
MD5 | 725061fae22b9404888699b1be65f42b |
|
BLAKE2b-256 | c4801c557146f004cccb8923effcf7f247cd30bca5cd6574933f3a2577003ac7 |
Close
Hashes for pepperize.cdk_security_group-0.0.432-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | db5a511bd7d92c15d21fd062629dd8b3b6d12053ddbc939d88c8c374589f1403 |
|
MD5 | 3385ead5cfc3aa3fe5f03a3f4aff9321 |
|
BLAKE2b-256 | 7521a0640882ebf0f4ed62a82a87ca09b3406505a1d5c4cffd7408fbb532a80f |