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.134.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc0e339e934a73dfc741abd3f12b92fce1f14a6762c777d0106ba2588b991a59 |
|
MD5 | 9ca9794e2f2495eb02a012fdb5d32832 |
|
BLAKE2b-256 | 4ecea9ef8321f73697414c4e3cdf9f271b7bcd8224c3a85b278288681458e2bf |
Close
Hashes for pepperize.cdk_security_group-0.0.134-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 970b90dba1a827a18a98dd28abfac4279b34f9bc85e0ec03d9c0a1f8b8f20376 |
|
MD5 | 69993dc0a33663c980dc4fb48b5354a1 |
|
BLAKE2b-256 | 1ada33741c6915497f9a5d2052a05fdbec4a4a9470d8e5f533899b2b3866b452 |