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
Java
<dependency>
<groupId>com.pepperize</groupId>
<artifactId>cdk-security-group</artifactId>
<version>${cdkSecurityGroup.version}</version>
</dependency>
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.239.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d6d3c4165f38e29811b56062418191ef697e972c8582870f2972f142618b2f6 |
|
MD5 | adbc757db5564dcaacda3cfa3933ce06 |
|
BLAKE2b-256 | 8f73b4ac9d45f845e6ab6cb3acc3553fd308836acc795157295c753b5518c5ec |
Close
Hashes for pepperize.cdk_security_group-0.0.239-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 141b8996bf14b1135dc1b966202eba641018a6fbc2b35db82ea423d5958d863f |
|
MD5 | 469b6a4f7819b231dc832dfce4ad20e2 |
|
BLAKE2b-256 | 55d9cfbc380ac0f9c4832f1a4b900033121876cd3a8be6bc2433727fc236ea0b |