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.218.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a59d00812735689be8305c4e2f422e701d042748d1103279c7ed4fafa52b9526 |
|
MD5 | 8d5b773e79883d482f6342e4d79483cf |
|
BLAKE2b-256 | 06c8ebf5a48a0b7d327229de75da8288e8a2e474e6e0151e3176e7ca1debf7d1 |
Close
Hashes for pepperize.cdk_security_group-0.0.218-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 702c32908248a8e4948e827417de8edad6ecac134ef0936af571dfa7b564f1de |
|
MD5 | 672069267ad388ac0116cc6223682b1b |
|
BLAKE2b-256 | edb237e1f62872d8fbf8bc4e7ccc8143dbbba1442f81026599c55f8c702a0da6 |