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.411.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a78165323c8c96e130d165726f68a3d7625f8bf660d44dd0b3836cc177427d0 |
|
MD5 | 677447940ccba1a6d3bec330c9b34a84 |
|
BLAKE2b-256 | 67d1013ec2b90c0fe9584e37be6dfede6c81dbc4047fe11b5192510ad9948c9d |
Close
Hashes for pepperize.cdk_security_group-0.0.411-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 513c1e2565070113f1e16f2f5afbf05dd4235128aaa241ca792b3cd2ba0b56ec |
|
MD5 | 6e9c56cd1c25f9ed0ed8d9f272cd101f |
|
BLAKE2b-256 | 717f7d6b776ce2a60b8938cc93200d95fa2db1a95963f49f63f2325a0919dda7 |