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.550.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6ecb5afd6283d7f52c676799c698da455631a779e514af8cb8e594ed59288bd |
|
MD5 | f183e0b4ff25477720261f5eecf9506d |
|
BLAKE2b-256 | 99fa6b74c0a45952fc3d6014a239ab922437b67634dc9183c272b23867e86565 |
Close
Hashes for pepperize.cdk_security_group-0.0.550-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 684ae93daf2ee8e524da33a36b89450e66743f773d52ef90c5b4cd793d00242a |
|
MD5 | 07c5ebb5518329f7dea50580a2d7c619 |
|
BLAKE2b-256 | 99431295f8d468f47937994b760635a93c82fe2ec99d598141408b28cb0b0f89 |