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.15.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58c1278d7d3fb35ceaa9f127871b43293d557e56822189c3e3dbc042bf7d68e5 |
|
MD5 | 7a062c9e497f42b0825e1cc3e89f6258 |
|
BLAKE2b-256 | 87710c1b3ef473219e2cf15356754935dadd612582d91c2980e0b114aebb303d |
Close
Hashes for pepperize.cdk_security_group-0.0.15-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc0f04393750bffc80dab27154da6513b1fae24a4d3e6e205e10ef98cbfea6a3 |
|
MD5 | 2f8a3598a4e75efb7206aed702685386 |
|
BLAKE2b-256 | 3b71672bb23bf5157626936fd070f5218f61f4f05013bfccaa2a96b04cc95fa8 |