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.365.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b425f5819f5f3053cc4b67d6d0f06bccdbc775724a4183bfd51b2fe14c288c55 |
|
MD5 | 42ba244c78b7e6d1d782cbf4715977a4 |
|
BLAKE2b-256 | 5654118f00943bac7d6695c8c3a4f6237ca9753d41fc458b6ea3428b3ff2b28c |
Close
Hashes for pepperize.cdk_security_group-0.0.365-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38bbb4a992f0c022e6067ff55bdfd9533e837913c4c45dbdb44cd80db4d6796a |
|
MD5 | 917064a17872a31dbab284a3821c8c2e |
|
BLAKE2b-256 | eda7702a6a0e7db663b59084f7ba362b2b9fe2fd9405e99c50959669b93a0e83 |