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.168.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11863627f597bcb8d03576db5cd2b5f4d194f636b00fc9b11510b1c90d93341e |
|
MD5 | 9d806c21a53203e6202b53f152e5415d |
|
BLAKE2b-256 | 6eae90c24c9f64871275dbf0c23a49323acb8a83363dd086d3a0cba1648aca56 |
Close
Hashes for pepperize.cdk_security_group-0.0.168-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c7bbe9832f122f8e865663472af13b271fc2599ef9f296e157656d075a1e659 |
|
MD5 | 7d3e082c5fd718f8d8aae55f4ccd94ed |
|
BLAKE2b-256 | 96dc775366561597419db5414a87d2a95aea58185eb65476670f811c96228c28 |