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.439.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1fd1a093a06c30f9498174e7688a9e9a6404dd64940603da472bdb1b5d6214c |
|
MD5 | 74add5c6da72c3b998125a301036c356 |
|
BLAKE2b-256 | f7a0d73400f0cead97b3971c27cf2fb69d052ef91d257c18e5d7886f04190092 |
Close
Hashes for pepperize.cdk_security_group-0.0.439-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d44ad92bfc6364f79f771233999492155d65798c7411b844ae4b680824085cad |
|
MD5 | c95749c6e347d003f13518f3ac207748 |
|
BLAKE2b-256 | 80d0a4f7e6f9597c3d83ce05700b38f643be22bfc0c89d9db44df35ad24b0b94 |