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.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 989eef5cfc8171c0994237802f5b98db88bb6b10fd127ab7171b2413cbdba9e3 |
|
MD5 | 77b8823ed1211bf5e8701c8d4ffe796f |
|
BLAKE2b-256 | 4578a8788ceff25155c104aa0aa40c59c63e47dfeda0b0a6bf3c8204321af63a |
Close
Hashes for pepperize.cdk_security_group-0.0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 981c5f35486e09d077df333583ac9218fcdaecf468fd264ff7134d605e4f1c15 |
|
MD5 | f96cbd6d789f5b267b53aaf82f85e278 |
|
BLAKE2b-256 | 7e983f57ce81b332e50ea2c0236162f01355322b76d35ea202ca6b01f1cce0ca |