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.26.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4ff705f0fedb3e41915e7873b5376d052a08cab5796f266bbe2765f3b3a3867 |
|
MD5 | a17815461cd0c58a41d1016fcd41e58c |
|
BLAKE2b-256 | 6a8e2f9a10ddc17e1d47256aa7e10ded5a6c600b7761de25ae02da6b92c30b2f |
Close
Hashes for pepperize.cdk_security_group-0.0.26-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf80848f6ed1b0964a7474632b30aa05ad7bc3a7d668c77c722a92fb2dd59c10 |
|
MD5 | e09e607d728caa8975b97bda188783de |
|
BLAKE2b-256 | ae0708aee1d3e0af4d1892c132d18ccb652e7f90b1524d7664c0cf8813c1f92d |