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.283.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e0cc70d08776af64384ad5620401421506d6f6c6be489c52d2c66c02b78d51b |
|
MD5 | 59afccc248cb54e43313a3fb4657b3d3 |
|
BLAKE2b-256 | b2fe85ff35f0db084ecef9253e28e5a926d5f5cef6d1ca4dd95b239511a8df18 |
Close
Hashes for pepperize.cdk_security_group-0.0.283-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac281523320c036adbf93b5d2474a9382c38d015f2e1140ecb45f722be3fc12f |
|
MD5 | faa9f62f67a5dd76a96c15f2adbed62c |
|
BLAKE2b-256 | 13b3e804ac9ad32648767bc1647457b5b9d28cd1ae36bd0a7797b4364843da8e |