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.76.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9af71ea4dbac77cda2f59caadc4779927f890c51a7fcee9aac1410e79465cd96 |
|
MD5 | 99f80d446bd46b3f6bd2d21a58104183 |
|
BLAKE2b-256 | 092969c22d07232a5f48ad3d5f3351387cc468e77c208a5ee5276cd7946f930a |
Close
Hashes for pepperize.cdk_security_group-0.0.76-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e255089b8b78366bbd169763e8d834e0d8912d6bf6db3fd751208b79f18cecd0 |
|
MD5 | d3df7279c08aa5669322d1e75de22966 |
|
BLAKE2b-256 | 5047d3a50faa5714f6fe7eecedec506a72493ec731053f9e1770d0d5457bfb6e |