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.510.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 810dd269938144dd347d236219088a3858e0ea145608761218f2f0683cea5e78 |
|
MD5 | 69d2210aaecebadd2d9707432571f432 |
|
BLAKE2b-256 | 968847c53ef553dbdad7c1e1472d438c37bf8eb8f8b0cd242ae834c49e0e1482 |
Close
Hashes for pepperize.cdk_security_group-0.0.510-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4754e2ce0beee0b832a4c653a0628e0776a88a370d6d508516f974418ed1c38a |
|
MD5 | cf0bf2ed0b15282c8712103b6df57c0d |
|
BLAKE2b-256 | 015e5d2e9d8b30a2723357832d1cca80e280ef9269f977b9eaf437db2721cc92 |