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.173.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52db5880542d02565512ea3a6cc0c767af27558b4c6cdb073187a14b7e78f3a2 |
|
MD5 | c9fde8a9d2038b0b9b8f39b6ce6ad8d5 |
|
BLAKE2b-256 | 9f69c095c11a68e9c3c948ff260732eecbe20847fa4b98bd88f7dd9f198e0223 |
Close
Hashes for pepperize.cdk_security_group-0.0.173-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5da3ad40fca89493b7a91bd1a8f6c564c4a035df2f91f187dc1054b5cb1b66cf |
|
MD5 | 4fe7ca4ef91ed436ca5564e9f92ffaf8 |
|
BLAKE2b-256 | 93b38911abe03d4310c2ad2caa8ed1a7e8c3ca7f20b11a0f8f2a3355a34f9c41 |