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.108.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3688bb609d2a40930a469536fe463f771c622af0586be779d90251073fd669d |
|
MD5 | ea64bcc2e20262b06f9a9de5dd96afb4 |
|
BLAKE2b-256 | 79b17dd61143c634da1fd8496fdfa9c334990abb9e919fc35bf1a0ec08fba8f2 |
Close
Hashes for pepperize.cdk_security_group-0.0.108-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ce9d22fa173e74782627dadf7eb7081c200a4345066f2adbfd037679670a904 |
|
MD5 | 8a6fc7cca8965e59bc528a98686f20ec |
|
BLAKE2b-256 | 8c19d2d56fddd7932640e8007c6ec0cab32db2cf283daa7d49e1d10a898c9e41 |