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.446.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8aeb1993688f400c25a2444ccab2d83e6bebf811f0f217c363948f44dc3e506 |
|
MD5 | 234543adfebc6cb46395406b9cf1facb |
|
BLAKE2b-256 | 9d3544944e2096db5149eee6cb3637adfb0ef43bc7444aa442994c8ac960c0f1 |
Close
Hashes for pepperize.cdk_security_group-0.0.446-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 052fe793b20afd6204969a6fbac3bd938096698ec8889ede58d85810ab284ed8 |
|
MD5 | 112f32c2d94e190f4039ea0d8154ec11 |
|
BLAKE2b-256 | d5786138d1501de559306dfe4149a50c6417a3f925a4d9230b9ea0a1d1bfda3e |