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.249.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93f31cd73ecce70273186e6cc0326ee01f051eb3a0a6135d435841a86a4f9a34 |
|
MD5 | d51da79f9206838d45656d72d6ded24c |
|
BLAKE2b-256 | c1be8a089f962d7dc708a515745837b191d4e8ce25df06b90cc0ec4e8a8788e5 |
Close
Hashes for pepperize.cdk_security_group-0.0.249-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ec4a21fa91a9869e9f7dbe3cff431af15da581a9b2cf41f021332a961cebdd7 |
|
MD5 | a6d1e9c6863f5a3003587d00f58f8efe |
|
BLAKE2b-256 | 78a3b18d2cff4c8c850a20ed5e2dada23a02dd01d7271ecae0f710d92eece6d0 |