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.230.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b6a56ca432a8a12e23247aff77bc42a321c0a0949a7d8071b50a9ed05d890a1 |
|
MD5 | dfcba4a07cb39cbec52c3216491deebb |
|
BLAKE2b-256 | ccb27afddb778291f5c4dc561511aa9d4c8046b92c182db9b71b3d74c497607e |
Close
Hashes for pepperize.cdk_security_group-0.0.230-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b69bdab2bd6925d74eb0a844446ac929cf814bb2d26d3e99b32a2f4eaa2f7ed |
|
MD5 | 1d32dfa10df69a04cbb1fe1958a9e4c4 |
|
BLAKE2b-256 | 0bda787b8390829b0fe28baf01b02813f7824a51036efc23dad4c0f6a5c13a02 |