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.438.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91bffc63f745f587ae06e075b804e30c5f3c404efe3450d9624564e057647403 |
|
MD5 | 5749a4ebfc3a60950fdd7405a0ad9992 |
|
BLAKE2b-256 | bcc0ee51a061c7f4aedec5e48d2fee2c76d6d815083cca63408be06df1c196d3 |
Close
Hashes for pepperize.cdk_security_group-0.0.438-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee2ff14d16ede4a6c10edf8a9a00fa67e8a60c72892b2ef6c4f814b365588c54 |
|
MD5 | cd0a36d0687254dd1d0e05baf506aa6a |
|
BLAKE2b-256 | 6f81232d9d3b44e909c0e71d58643a3162a954ac1eddcc31aace4187e5ac48a3 |