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.516.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | eabfa20b0caae150251c3b4350de47f8bac3d875bc0efc1a295539ea74abeae7 |
|
MD5 | 5f4fb2e93a968884997d89538c8d88a4 |
|
BLAKE2b-256 | 303159c68db02b4fab2a49038cc40514ad9daecba45880fe82abdf4dde7f7046 |
Close
Hashes for pepperize.cdk_security_group-0.0.516-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a03c74e67e2c5cfbbdf949c88b422504d62efd48eb8e94a6f8bfdca04f50303 |
|
MD5 | 6e4cfacb864277b0186ec8d366060e78 |
|
BLAKE2b-256 | f8b9f86481bd3e2ada9e2a1cf049e20951346c1008fe067568a89a1ce45be089 |