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.49.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea7eb3ab5de91b383c561685d781c516b896a72c5ee3ebe4963a66e5046e68f5 |
|
MD5 | a4ee03484095dd2e59a51a19fae6837e |
|
BLAKE2b-256 | d6976cfa194990dd33187fc73e0fbaaaaf24c81ccd0def48d69cb25e853cde44 |
Close
Hashes for pepperize.cdk_security_group-0.0.49-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f30622ee2a674e42d521525a1fbde588f53c21e51688735863fcb7fb6428a05 |
|
MD5 | cdb976a5c2d4bf283a0f36cc4d86632f |
|
BLAKE2b-256 | 04ca8b5da0a89fac5d1cc37eef0b34b9c3887f44dfee1225000d9562505a3c4a |