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.534.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e67f6e495ff7a4dd1ca78c3e373a8bc79d8c65772da09367d5eb3dd2b5ce5c14 |
|
MD5 | 7a4484c1dbcb1e1cf1901f27c5eca278 |
|
BLAKE2b-256 | 1185f2f39ddf466910032f31b2d386ef7aa588fd1e06322157b77861b31b9528 |
Close
Hashes for pepperize.cdk_security_group-0.0.534-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | df0b7f212fd4143eda7233053b680b3efd3831b8fd4b2651b2f372c17801fcd1 |
|
MD5 | 3b9e6eee107c4923b96290961e37db0a |
|
BLAKE2b-256 | f4732125b376d715cf6413a1fc08a40547b9da17583e644aa87eb8006b88ed5e |