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.349.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4f6e23dd6809262b3567c927aa1ab15b1f538e033d2a0093fc4e565123e0c53 |
|
MD5 | 403237c174d8f99144d535c29ff1afdc |
|
BLAKE2b-256 | 9ac761e9514da485b74de757c4bf89e564792d3fcc288239a7d6e9a1d93c57cb |
Close
Hashes for pepperize.cdk_security_group-0.0.349-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2a95d40a8bd22b7464631566dd9d83585ddc98f21a8dfcc8b4222671bdaf880 |
|
MD5 | 5b6acc11e3c7612d827dd04dabcf8669 |
|
BLAKE2b-256 | 1285cb51a0efcad1592b1e5d959e8218f8684566f24d04073a00ffa118cc732c |