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.350.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68df01af5fd77d13196fd2b0aa233683fd279296f0ba2014c888687dbe6e5fb4 |
|
MD5 | 9192cc08dafdcd22e3610a19bcd8b992 |
|
BLAKE2b-256 | 27b1df581c010e7ad3937c97bb01248dca2a1bc0349c26840d90469c007eef84 |
Close
Hashes for pepperize.cdk_security_group-0.0.350-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef8a7121e04c49d9cd80e175645c4b863b8135afc65a4f3fdcc8f26ff0040452 |
|
MD5 | fc89cc47de955a6878bbb1c49d2e5404 |
|
BLAKE2b-256 | f3362e22739b1d6e3f13a17acac969014b1d6dc777cf541deb30b4933c4dd15d |