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.486.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf88832292353b62b417427ca83ce43070198893d6de9856dbe21321b91b27cc |
|
MD5 | f1824ff64997e732edcb407d38538be9 |
|
BLAKE2b-256 | 35d29751b3966c1b0a88632795c8ceedb729612fe30836489aa56ad6b6aeb98c |
Close
Hashes for pepperize.cdk_security_group-0.0.486-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03e3037a0bae5bd4e928e00584bea0a8afb2e71c56d84336adba3546674de8e6 |
|
MD5 | 77ad35a360e0a7e466aa8edda31d144e |
|
BLAKE2b-256 | 91e207a7f9a2453d72d5b093ee3da38782cd1bbc16ad5bd9ed05def6bf0bcacb |