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.448.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e85dce12fab7626ab1ac13ad1f5a4e16e0ee064cca1db8bd841ed0ef00a7097 |
|
MD5 | 0599c13a0dbb288290e4c54a16d9acca |
|
BLAKE2b-256 | 0b319609cca4544bb563d9e7e948e43e74d7d7f4c13773c45ebb7ef135f85fd2 |
Close
Hashes for pepperize.cdk_security_group-0.0.448-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 646bade908589427c6706db6d80e63af4248a70dda146b643acf9d6e1001c5f2 |
|
MD5 | 2aef8c9554c044104c1956a87ba94021 |
|
BLAKE2b-256 | 7c7f08b1d98c7576af20e917e4bb8d23987f590b232fe1904bf39b3aa405c501 |