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.386.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6dac612c1a5400be24c7acd1ef4e72bd0259394f2d093bbb475a94b2bbf3d88 |
|
MD5 | 0f7a8d3f033664767d2254dba8e1eda1 |
|
BLAKE2b-256 | 598f6ec8be97c3c11f88f7dd3eb7180a912e84ca2643bd707d0fe16ae2449b39 |
Close
Hashes for pepperize.cdk_security_group-0.0.386-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98a02d3b86825ca692eabace1544007034124905d0130a8fe1456cefe2b89dae |
|
MD5 | c24939842c14430a4c9ed72b52888d54 |
|
BLAKE2b-256 | 23e30eed77624f8b5a088ca8f067c0cf608bde7cba04a767e768feaf1932b444 |