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
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.37.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92ba6c583cf5798880818035e1930e11d2604c88ee7dd710f96f047a02b4af85 |
|
MD5 | 41c6557fa37d42dbf33d485b8f4d9e3f |
|
BLAKE2b-256 | 2111df87b1feab66970bc7f18fe9da22deb8ee2ceaf699178e426d72bcb4544b |
Close
Hashes for pepperize.cdk_security_group-0.0.37-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8053863d179010bff14476aa83b84a0f3e073e9562578f8bb7424d2bdd031154 |
|
MD5 | 4f82fd9085f98d847ee0cfe0e6a9e5cc |
|
BLAKE2b-256 | 2b07d31534d140de2710352a6132f164777af012348bfb6fafdba8e48a0bbbf9 |