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.214.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0d1cb09eb0db87af214c99c8f46c611451325cd9cb17a0035f16429a5cd806a |
|
MD5 | 33624753d8dd7004dc5bdffa0139cdce |
|
BLAKE2b-256 | dbe7b1bb50a8db7f5ea282c79e5e8a06e18077cad819ce93c7853d11ddbffa23 |
Close
Hashes for pepperize.cdk_security_group-0.0.214-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1b29d2a8ac88e62e823098be215b0f3b004461e14a264622bcd441b8f45d558 |
|
MD5 | ca129c909d1d75cfbefd2373c438c774 |
|
BLAKE2b-256 | 3dc212d70572520aad569c3a5bb18a20a5bb6ef8bff3211951867644a9d2960a |