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.345.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23773f8530955c39009003b5df883bfb9a6227456a993d724e1eb6938ece6aed |
|
MD5 | 597765570de9e80b29d9cd6d6c4e2788 |
|
BLAKE2b-256 | b14d3c19539f1edd9129256d80f5ae70a9a144ad07c6705b20868f8d70968f1e |
Close
Hashes for pepperize.cdk_security_group-0.0.345-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21f07d8a91c967e00851f3ad1c618c37caf66f31ea5bd2378a3d5254b8c4a377 |
|
MD5 | bf8a6848d1277982c3e299bceeba95f8 |
|
BLAKE2b-256 | 66c9fee6b696e6c1ad0e2e832384ce9b9ce335636c3716e4f75eaa6618bf89b5 |