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.187.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b03c30910ed4b543d43da2693b7562d9319c0f0842c19155316da6e2d9c81f17 |
|
MD5 | fb3c2aad427d43c4612ae0ecd7c85de4 |
|
BLAKE2b-256 | f9986dc0d0c95987c7bf6702d78a34746197f61ea05542785833c19159a25fd5 |
Close
Hashes for pepperize.cdk_security_group-0.0.187-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78e15bd3ec325879ea17f26f42633d401e556944497486ea32dd03e3f1054864 |
|
MD5 | c6b4f2c50cef6d842578ecf667bb6e3b |
|
BLAKE2b-256 | aa97e137a5a3e40dea085abf10509c79cdea221108e16fda30de6a65963bb11e |