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.403.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79414d07519b44491c23812cab7d635c8625560b7954ee05bf95949613f4252e |
|
MD5 | a99953c0dc00b2d5525cd4dc84ed265f |
|
BLAKE2b-256 | 6be445d97f151064a0e01eb140c87dcca273a142e78c9b67e8707a73784c2a6d |
Close
Hashes for pepperize.cdk_security_group-0.0.403-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86314b75951146524545fc489980463f3e7f910c8aa51f62261c4b82bac62366 |
|
MD5 | be68d32f792639c755bd8cff71b62172 |
|
BLAKE2b-256 | 201c46073e070fa825dd5461daf035e92fe4fb972ca899450426fd2e4952f586 |