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
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.33.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05be6b934c7e71aa43b5dacd2cde49522d08a7f709e0cc0cfead71cba35f7f23 |
|
MD5 | 3bcf27916b511f24721c0e8770da722b |
|
BLAKE2b-256 | 499b4fa3ac2f1c343cc718906f50a5410d46db84f6663b36fa2ca24642fac31e |
Close
Hashes for pepperize.cdk_security_group-0.0.33-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3bc2a18b4551228f6ba0334e4c7dfc871c2f7c93e8a15df5e7c472db0ffc41a8 |
|
MD5 | 0b0ca064162401646797d361756a75a6 |
|
BLAKE2b-256 | 4fd9179d68093b80881873784bdb7a0f01a3fe4977c2b66b43f2c6e1ed267e2f |