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.397.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 842658c1e5977c1a868b0bbcfec4b8ac7f1728085f75cbf7784f08df2ffc9a68 |
|
MD5 | 56bb587e177f6a280d7a7074297ba847 |
|
BLAKE2b-256 | 82df43c65c5e9fff2d0081a939f2182a7ed95207e72adafbde53c47b5030b9aa |
Close
Hashes for pepperize.cdk_security_group-0.0.397-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 096f2138b7c422fbb3ad17635c37870ccfd269e2c3e469375da940e5c6c8092d |
|
MD5 | a877acf79db344f1249b53e0381503bc |
|
BLAKE2b-256 | 5a100b1a920ef236206c5ef83c4db888806d440854e9ffc5ee2ce1f5ba53f608 |