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.162.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5eb52c7bb742b9fe31d53e8a81a9732abb5b69c8e4e61a65e4efd15f1dbbd23 |
|
MD5 | f52a9e711c0c4a29a58e68ef6e3e5afc |
|
BLAKE2b-256 | 2de407791160caf6c91ed225b56f27ee6ad4d7678338b4bcb210dfa8a98a7335 |
Close
Hashes for pepperize.cdk_security_group-0.0.162-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90a0be04b11c3dfe5612f9b840dad30c879af9396c48f3e27aef19f9ef6da553 |
|
MD5 | 4525db5246bb25de06d47ce020e04a5a |
|
BLAKE2b-256 | 5fc53b62dd8fa4293f70cf3cf86a573088ffef043c736eb16d81fd4ed2c80a81 |