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.54.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 979f1b0b1630250f567cffbc08a9b3b1f6926893674e6c1c65a9eb532db06d6c |
|
MD5 | ba94607d80438b5e4529d4a839f4f60b |
|
BLAKE2b-256 | a9ba702e63b8145cc9b95db525e7b630cdd6957d2cd98e7c600dc35def7bdd75 |
Close
Hashes for pepperize.cdk_security_group-0.0.54-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fccfa6cddd01f3346cbd96ea4ec1da74ec6dfa39f45a9c3f4dbfa06ff76f41b0 |
|
MD5 | c459556e2d98dd8e49c43c6f03ce907b |
|
BLAKE2b-256 | b8e42c20a6ac44cac420a71f5c5197516e09b8736efa416b9d9b3b44e2989a5f |