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.529.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3adced3c34cd479f55bac21cd9d2a7c094158262bb28bcb2720db37e1ab89817 |
|
MD5 | ec9c0b08f704048d4f675887d75260aa |
|
BLAKE2b-256 | 7dd707706a8cb914558aa81b0c02e323f73498d9cc760c6318c184f000300dbd |
Close
Hashes for pepperize.cdk_security_group-0.0.529-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d002e54ba1aa5346426147949663fa8c6468dd009398fcdbebdc3b90f988c902 |
|
MD5 | cc57d048fe1b2d79761e5adee7b200f3 |
|
BLAKE2b-256 | f41ea2861ead39fd5bc79a70c9f0897e02dd131ab92970f0a095984ceab9a313 |