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.39.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b061879bc9fbb1f5d155613c3bd161a9dad749ebb0ae67a2984677dd142297ba |
|
MD5 | 5174ac6c72d56b984ae8e3b5796fa68c |
|
BLAKE2b-256 | 853aa38b9ece9bdc374828751533270e58c5f3a5e6a267f30e010022df382a09 |
Close
Hashes for pepperize.cdk_security_group-0.0.39-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7202dc3aca286046446d99475526f1a711cb308d7e58a2fb1e42a22527d541e9 |
|
MD5 | 17b73f3e0c826791ce66b7028f4dd486 |
|
BLAKE2b-256 | 8ad1218007052072ed8217fd180681e701506fb9e8b29e71b61abace4f235918 |