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.140.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7dd2a9aba59af5e441e00b69591cbb96485362884978af1263b77d26e77d64d |
|
MD5 | 9f5d9e17d850c515a2e0555d7baf8654 |
|
BLAKE2b-256 | 515779b7f4f677f15b4f858a4ae003b472edfb7f24fd131c701888ce9d2af245 |
Close
Hashes for pepperize.cdk_security_group-0.0.140-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e9d1f35dacbf750230035f28dc96f64ad2cb66b3dd6aef68d15efe6ec8adcd2 |
|
MD5 | bd61abe4b952ebaed933718a99062eee |
|
BLAKE2b-256 | 24a8e46170aaad09b7e4a6c96f5d0d15693dc0aea7c38002a409bdeffa46ca10 |