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.215.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07bd4fc72d3c5bddaaf8059bbd75808e211eac134b21e19e7b480583f8de199c |
|
MD5 | 27f8cbffdde97c40dabacaacf1cc2f24 |
|
BLAKE2b-256 | 82d6ac4cdaba8aeb3c8ac75ff394e6639bb4be77177bdd67770e3787d43b0cbe |
Close
Hashes for pepperize.cdk_security_group-0.0.215-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60b8a5e206b55dfd82648d545f94f999d4b3488d7dc8ffb5c1aac0fe84de6a78 |
|
MD5 | 10fa524d93ffeb81151372806bc5a8bf |
|
BLAKE2b-256 | 90ca85ca7d3b5c6b90565eb519701fe4f2eb8ef969057cabdc3eba54598f79c2 |