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.391.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9dea14557095ff891899a9297c37f37b0bd0cbc6c545750d2654b6326f8af73 |
|
MD5 | 8a9535be01ca4848703f3650478ad190 |
|
BLAKE2b-256 | 190ca6801d1dd7b5f03493b2e34ad834f1382ac4be8e9f08261b5fa1e414f717 |
Close
Hashes for pepperize.cdk_security_group-0.0.391-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ce0e6be1c7ae65fc12813492e445afcadd91d7c833e6195d61a75ce66cf7cf9 |
|
MD5 | 39bd6b55a0d860575f23a2b2cd84a92f |
|
BLAKE2b-256 | dca93fa933a8e241d4d3701f5129b488a552912ffe5b6e0debaa977570e0e6ab |