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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84756df8167e484281232997a77f1bbbb02367572ffbf1eadb0fd55dca7f9d52 |
|
MD5 | 9a5a8552ad4eda60f50ae8d8b5df78bc |
|
BLAKE2b-256 | 69723a4ff25229114e8cbcb33bde199836cfd078cd4e2be3460b0bfbb41679b9 |
Close
Hashes for pepperize.cdk_security_group-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a98eda1e3a686006e084e1f317bf4421517709e2d06420f535b56e7a16e431d |
|
MD5 | 8b0dc9ec0edab2cecdff5fc8e88a3f6d |
|
BLAKE2b-256 | a82ee47db1ab3ae17b3837dd09a471dcdae317a9c21445eefbbd3a3e19c49409 |