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.98.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | abc125203f6c06e3d140c3f472514d5c1929eb13ba40eb6d0acd148c6872929d |
|
MD5 | 2468c13d3be3c652ed6557a0a0c8f6ca |
|
BLAKE2b-256 | 51981c396781b2a6e81d75ff16359a412509fb0b2e194622172459fdd5a259e9 |
Close
Hashes for pepperize.cdk_security_group-0.0.98-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb8512b021e663c83ca708174c50ea5c04cc3b89bf84af21cb3b8e875ad05dce |
|
MD5 | 7c4052972c59239849f4139069d7c15d |
|
BLAKE2b-256 | a97a08b8121d82dc7bc0558d83ce98c7767a97e371b96bd032a1888bd5bb1c54 |