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.165.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fc7d1365fb91759efa19601e93f857aa20e90ebbb3859221b39c7f5e7fcbcad |
|
MD5 | 18cb00301585d62218687be26671f7c3 |
|
BLAKE2b-256 | fc21b8f2a542bbfb1504bac82a0572d11850f07335879a38b90db67b09f28752 |
Close
Hashes for pepperize.cdk_security_group-0.0.165-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d767212a65683b74637bf7be6493dc05522f33738a4e987e4e548915386ec26 |
|
MD5 | 26169194745b315f60d4af165ee5d8d6 |
|
BLAKE2b-256 | 32ab2e1d6ec28a2758a929895fff01a85dc5986e0c9bd4107139a2adcbb57b80 |