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.490.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed7ac6fe84095608e4e3bf07373a7787be4c3da82e26ec5564cbb83edec777fa |
|
MD5 | 6aeeaf81950d9142dd522542d1e6aa2f |
|
BLAKE2b-256 | 42bc325331bdab536f5044635ee9593bdf6d850aa3d42fbae99be2e789c412e2 |
Close
Hashes for pepperize.cdk_security_group-0.0.490-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf7cc387739c57755b04c1119041987613aa83b7f43b74bb629315080106aab5 |
|
MD5 | 204dd49d3d3caf4f90d2dc1d8bb7be22 |
|
BLAKE2b-256 | 055909b1b24c4c8b09a9341fd683031c16cadda124aa44f7be1fadf66d9997df |