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.77.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff319c1ea129cb86c5974bb5a4516e370424e4d65f8b81aee8e1d094d32579f3 |
|
MD5 | 415b700cb0e06e2d6b7b21401e084dcd |
|
BLAKE2b-256 | 2612012ac90a1cc78d63e40dc8734953899a11efbeea34fa6c3ceb8a5bb33771 |
Close
Hashes for pepperize.cdk_security_group-0.0.77-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd7926c8dd4b8190156148d225bd4cd9f399a2b076e71c2789cd80078e8122d8 |
|
MD5 | 9f35e074471caefd8c0ff4b9a1af5fe2 |
|
BLAKE2b-256 | f9a233d9fa0bbb970b01d20658408f341111a13064a630b8bfca4d7672b571e3 |