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.155.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f5d43654ceefe5e4d8213cd7d7b4f7ddac88bc21d35d589822a7191b18139aa |
|
MD5 | e3c49e928ff1f2c99505e7e75312e05b |
|
BLAKE2b-256 | 6eea1b402658fa774bd378fea9bfaadd12f24d16da1745b423127a807d5e1118 |
Close
Hashes for pepperize.cdk_security_group-0.0.155-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca964a96ee1b3704e2f5ff656ed3c8e71f868df9dbfa851c8c3ccb2bce8a9212 |
|
MD5 | 4d91a0efd9258e6130aca85462668097 |
|
BLAKE2b-256 | 5c2f8193746bd3773bce416df8619dd0562fa9cfc2643c70a9b7eff05ee8347f |