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.99.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb7abeb7cf95df62a18eda51bd8211b6f1b208098c6bc19456e481d9e2751806 |
|
MD5 | da5e981dab0982bed6dc6ba780c575e4 |
|
BLAKE2b-256 | f94484eb1aff085a41b99d2fbf0824481285bc3007b7c318e9a646a4802ce199 |
Close
Hashes for pepperize.cdk_security_group-0.0.99-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a17af28c493b8eee489cb90d47f192b0359e63829bdf3c729ad228518b13e92 |
|
MD5 | 290e2f946c439b54b286dfe54410d237 |
|
BLAKE2b-256 | 2ed4650f9ab2337b33ca69523d3d6ba248652e3e7fdd92ab731199ec45cd688e |