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.48.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe47ea032dfeb53468ec60d0b85073fe2dba1146ee43bcd59906c7705705c062 |
|
MD5 | c1be9e5182e0deb2c8c7364a1683ab7c |
|
BLAKE2b-256 | e0406ec72e6587a4b8e1e559f3b295e151949b4f0277436d1a93f1243af0ac77 |
Close
Hashes for pepperize.cdk_security_group-0.0.48-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6017a4b76a24daa5d77304a87f74ffaee6e264ed00ba81ee7b7ade42840f54a |
|
MD5 | c9f23cfe2fcbf9d58ff8980aa14d27e0 |
|
BLAKE2b-256 | 557d4e09d3cb200eca5ada9ac271e2db074b2e519a366a3bcb9f9de8cc5d58c4 |