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.188.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cca2d5bdb1b56e56a22f0da16eedd873a1d91b77af067588cd81d66b1ae2fcc4 |
|
MD5 | 04dea721b9f8f91a8a7f1e739caf6626 |
|
BLAKE2b-256 | edef47698438d4a75cbfa06301a122b9abf20c67189a0baa42ee254bd0419164 |
Close
Hashes for pepperize.cdk_security_group-0.0.188-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15c31071493d50cffc3eae7a4786f17b98362c3e5aaf4741a0bb0a78eaebabab |
|
MD5 | 98b8c54a74b8340403102af12808251e |
|
BLAKE2b-256 | ce3e0819679091ebcd231546e2855d66c5ff7d611f2cb9aef91fe3ee50e6be51 |