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.114.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | da784091b3c15dbd89fb19871ae1287bdf6d34817e9ca2bacde4416a2426f8c8 |
|
MD5 | cf75111be2b6a6320323c2e2e1b8ea2f |
|
BLAKE2b-256 | a0c51bd8ab065bbcb1147bfab945560a5b03e8bfbbe90dbd497ada14d0b4cf7e |
Close
Hashes for pepperize.cdk_security_group-0.0.114-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f954be5f226ecf1903f2b27920587a93f1841828be2aa0979e0ae3616dfd0e4a |
|
MD5 | 1e7e0b84a9c6ac2cd96c35cb1f22acea |
|
BLAKE2b-256 | aa9670dfbe01ce6c95acae4e5ac4d7a2262558d0bfe10794df80b829d3fea87f |