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.213.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed7eedf873013c4b473868ceff21629dcecad7b939d7a9818c765fd2f3226290 |
|
MD5 | 58ff4b6d416bb0be77e2d692e98862c4 |
|
BLAKE2b-256 | 6f2333c22dcb058e19080ba124f346eaf5e5f79a5b2dac67a8bf526b57ee223e |
Close
Hashes for pepperize.cdk_security_group-0.0.213-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | acaee3cfecdd3f67e3c90ead687052d40c7224a4b8c266c1b80740c5fca89e2d |
|
MD5 | c03482f904953fa8739b99122c03aa59 |
|
BLAKE2b-256 | 1a6f8ec490560886b8e70ef355eb1e1d7acbef1e215b271128b6bc0da95a325e |