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.210.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe49797c194fb47d94d5ca378b076d217e569aa5a1d486e3584aa5d02b6cf764 |
|
MD5 | cbddc882510a5c1fe74c2656af5c5b0a |
|
BLAKE2b-256 | 0bb2a8fc97e29d0bfd49bc7511cefc9e2cba6934e6ac6d6cba536ace653a485a |
Close
Hashes for pepperize.cdk_security_group-0.0.210-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3933cb4d18b309c9b3be99a6e6be1e02e7c25ba567b13cb50007afad61abb106 |
|
MD5 | 0fba34a7b07b46cb28ea0e5c8bda1a5c |
|
BLAKE2b-256 | 011d34e4725dedc974df8cf68a91611aa4b85688f7f56e0897dc4653811e97b8 |