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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ceb5c67f2d91787833979191ca4ed6d307fe34e6268c10a6a3a6fb0b36bd3e4 |
|
MD5 | 3f95e33617c7503129a80bfe6411d6b3 |
|
BLAKE2b-256 | 5170f0757d172af796bb320a803a56b1558477b72a6b6804911a420eead596f8 |
Close
Hashes for pepperize.cdk_security_group-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf279dc8de013dccad7c39ce9c27f261c083afb2b849e35deac3eae54b204597 |
|
MD5 | bd40d36d3508fd0fde9db355779c333a |
|
BLAKE2b-256 | deb16e55d8481fa5b324342278bd67ebd0e3caf45b7bbcefc2b06c2726a1b20a |