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.457.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3363e9d69e71550f9e7e684647d8370add21ea2279ec1fa49f032d38f4d04c11 |
|
MD5 | d06d0cfb3a7974f86017f016e08ba0fb |
|
BLAKE2b-256 | 6520f14aa7c4c35c97a164914aa641399db0d63232a1bb754a8eb578d18565c2 |
Close
Hashes for pepperize.cdk_security_group-0.0.457-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5698a672501b1ddd5c0c9b56d52c23447e67a693970191c925be4934e94a1357 |
|
MD5 | 69bfbd3b758238f6d0c455ee7e1e6bd1 |
|
BLAKE2b-256 | 73789c813a29bd7848aaabad36fcf195e91a7ff3127894a4ec6217c4daee87bd |