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.123.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2a2698f07457cf7a3435adf58f7178ddbb1f8bd27d595453a05cd6bd4f64b4e |
|
MD5 | ff2a86e7c30ca185eebc2eb87167d4d3 |
|
BLAKE2b-256 | dbba68367cc19cae6b83b3fa9196ce1d5ae5c59388d6968f5ee7134f9ac09064 |
Close
Hashes for pepperize.cdk_security_group-0.0.123-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35accc0e4037d3fb89fcd5c4912ead2ceb75d1cafb5879029693443f6e82dd70 |
|
MD5 | 6c8f18a399832a983c4e35f092a02dc9 |
|
BLAKE2b-256 | 2d5e7fdc7714c341316f151dcd14286d8c3f9abafe2cb63a3098c592b3505d2e |