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.51.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb759252f0007eaafad6aa3a2f71b728c28d63e49426b57b47c4ec9362bc2e19 |
|
MD5 | 4be9e2d2dd72a7e92c0c23a8954f8a82 |
|
BLAKE2b-256 | bebd4036dbced5be88038fe51031f27835b2b8063b1dccf2ac11544c4b6b57c1 |
Close
Hashes for pepperize.cdk_security_group-0.0.51-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56c03a649abbff8f295dfa00418d13e6a23ca9f9192c4ab8016b78a663e8cd83 |
|
MD5 | e1335a5519b760d58c2c736a6312eb50 |
|
BLAKE2b-256 | afaff2c379218efcb98d6ba39def94c88f1e3869af801d1ae1aabaa816240491 |