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.422.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 954db61e46b88bd848d11ca9f4fe177f3b3055ada7c50ee975600412400addeb |
|
MD5 | 12e8e39b3fe33d719ef37eea5733b91c |
|
BLAKE2b-256 | 48977a92c64baf2bfcb6e4ba67eb03e61b7c50e97c15de7d1909193e15b331a9 |
Close
Hashes for pepperize.cdk_security_group-0.0.422-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d80f3be858eacae3b7db06bcb9aa26af606b901c60e51b504078c2171ed7d8bc |
|
MD5 | 58bf1544105249b6953f7f1e782fbac1 |
|
BLAKE2b-256 | ed47eacdc0abe8ba763513f9d4eea016e20797fb98c1a61bf2d4d8ed63cae449 |