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.258.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ceabd26ea97212597123fa9e44208c3e27f8ab5bd8f08cf7408965aa45ac2436 |
|
MD5 | 0dc96ff32f7c3ae537334a6344a08db9 |
|
BLAKE2b-256 | 1609a08012fa302eff09cc5da0f0c2c81f505677115232566c91f2f450d0ffc6 |
Close
Hashes for pepperize.cdk_security_group-0.0.258-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6e56d3fed05d8e0b9f22c1e5b931ef2e11ab3e90ea667f608a60b1d62619c70 |
|
MD5 | e87c4d2de59c1e7825dc95771da1a76c |
|
BLAKE2b-256 | 6112153a3c25b40e6d762782fbe0e392972613a61b81e49e91419805d2f13a72 |