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.72.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbbf926fc1569e12b0b86381add8009eeff7d7b859f127207f7b260f553360e5 |
|
MD5 | 26f608f6f35a338f0728b75f9a40ca2c |
|
BLAKE2b-256 | e2a079376bcf51df0d24ddc344fb5609ec21ede86135ec67493c269b27a0b777 |
Close
Hashes for pepperize.cdk_security_group-0.0.72-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d6ac02629f9f213b24d82d4ac31e13b6f78a5729a9cf2fd43571f21d869fc87 |
|
MD5 | e42df0f4b9fd0275725e6be24fb8b750 |
|
BLAKE2b-256 | 9ac5464ab27ff8e6be782e34e53f461309aabe292b1d379b13480f481b4182c4 |