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.491.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | baccb8ae779145dea031450b2b23e8d533a70c0fc1566a18a8b773bee2c7280a |
|
MD5 | c1a6665cb8eb82cb82765394da91714a |
|
BLAKE2b-256 | 053cbd58850c324112b41c67aa0ff28726c0b602d31226a1013af7a041994c22 |
Close
Hashes for pepperize.cdk_security_group-0.0.491-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b5134613a2ca8717ae2fa3e4e1133c533355ef8400f5c2e3a3152e88d31465c |
|
MD5 | 09b745243f207a7f263c4f2a685b6611 |
|
BLAKE2b-256 | 664986bf3f7aa2dce9c4cf0005f1ea9da929905b99318b3bfd0643f0ccda6405 |