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.43.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c10f7ec2f90f99097a785cbb43b5542122b324010164099ae6e3cf35f3c1e5db |
|
MD5 | 2fc60685bd15cac63207ccad46b85b65 |
|
BLAKE2b-256 | 5422398790e8c2eec0bd87885c3d8d90fd394d63f8b73924b9c25aa78991a042 |
Close
Hashes for pepperize.cdk_security_group-0.0.43-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e86ba59da4a1beb8840c5ee1f1eea998afe4e9310a0e223dd1237abc6d011903 |
|
MD5 | 61b4ec56ab0a40f25a540ccc2aa2dad1 |
|
BLAKE2b-256 | a5e832d386b4e82bc3adcf4caf90b404d0efad759e50bed999e3f95f5087e5a9 |