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.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a6fe825706774183551c46455f6f50b8d9e7e90492676173bdd57d1e86708b1 |
|
MD5 | 9ff134e36485faa407e7d5f94b51a73c |
|
BLAKE2b-256 | 78e8c6ffb1bca3b62412328b39b85cbeae2d4344033060719294f66f2ba58287 |
Close
Hashes for pepperize.cdk_security_group-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bd011d53a892831beee5db5af20622689c4a890128c9dee16f70885023b4889 |
|
MD5 | 6375143b362a54cdd2552a51841550f0 |
|
BLAKE2b-256 | 18fb5927823733512428a28ff2b34db2330e3085bed4c8d898b4e9af53679899 |