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.106.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3bbd044afb76300eb7af517ee7d6c983a4d3ebca78f03328b07e7270a5660697 |
|
MD5 | 52195dec12529243271116e9c7aeaac4 |
|
BLAKE2b-256 | 99443922ab6e047f6688bdf04bc7b1196d401eb56dc61434656c5ccd9416a002 |
Close
Hashes for pepperize.cdk_security_group-0.0.106-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | deabd6e9be276f962a06beee0bff0e08633b577a0aef61499afcdd7063644fcf |
|
MD5 | 3d91af62a483cc779728e203b13f7cc1 |
|
BLAKE2b-256 | ed4a2535495147c8c87650badb79b33124d4ede6daba9b960424e8b4fb2d6821 |