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.464.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d6b0f51a6c6399a97af3c2335ef1fde5714924742c3c6717eb3e97f0c402c08 |
|
MD5 | f471b15c56904e0c26f314f7275efef7 |
|
BLAKE2b-256 | 12066ac92abc690ae2462a1dba70a78c910db74ba65352c61455ef53fafb349a |
Close
Hashes for pepperize.cdk_security_group-0.0.464-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57983099ea5216698732132ccda624ce655d7dff9748b344fde09cd06d7193db |
|
MD5 | 138eacf79bfea185e817a23e956bf83f |
|
BLAKE2b-256 | c06db35f2bc0c8d98c9cf406e92cf93cd22dec89a43cd629ccf64e2599030bae |