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.70.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | adcbcaf5fd954bbb0ac5fa68a682cd19e265a0a838d8726ad56d20b330db957b |
|
MD5 | 09149cb0a2142e9efb070583838eceb9 |
|
BLAKE2b-256 | 692d1c9098a638d8c88292d3b5de6ededc93845dbcd608f508edd17853644c69 |
Close
Hashes for pepperize.cdk_security_group-0.0.70-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca9451184d5276fec594c0d31de13cd44aa9d0965468d40f57924adaa32dd5c1 |
|
MD5 | 285fba7a914fcb376378f899de65f906 |
|
BLAKE2b-256 | 1cbc64506e41ea75c02ac87e36b5235b5f14e36820e8dfa582c924b9e863a6da |