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.63.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e88e386dd5f69a9c0fb21405cd1ddb1f65e5a48dc9489fb0abe76a1a95adacf3 |
|
MD5 | 9556dfa12cf5fa22c8e12ae14b39e536 |
|
BLAKE2b-256 | 7e8868506d13d4afc579d6c64b99320cbecbf39ceaa91db94f5b31a753b2af65 |
Close
Hashes for pepperize.cdk_security_group-0.0.63-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54ab37a339e8e97addeaeefce10d199ba2552c968f3a286fa7a8dd6da88a44aa |
|
MD5 | ed76850f61d6b52875b60912c2a46a82 |
|
BLAKE2b-256 | 659d0ccc45af61563456575ff657e1ca67c25083ef6ffa15684607d09d95e227 |