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.419.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f15583af98e7ea5abc20e392bdac0aeb445d25a897f024b69702bd624ae2589 |
|
MD5 | 820dad84a6fa449c2f475bd0e1a22a90 |
|
BLAKE2b-256 | 6a9e55dcd7b6e62cd6f376582db94771fc23a9644851ec637098ebd9516b96a1 |
Close
Hashes for pepperize.cdk_security_group-0.0.419-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2a5879a5d2cdb12bcee7326f406f46c368c822f50116a4e3478d853f9060480 |
|
MD5 | 4b26ae8fef0f6d69925e32e71bfe4aee |
|
BLAKE2b-256 | abc49b5d7b524124297766c469b9672533be10ee7ab3c8b31359c62ae2118b01 |