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.45.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f83d355ec1ad2da89568d85c6bff626238a6653337f989171c980479d80312e |
|
MD5 | 4b2a72a424074a4c72cc357d19aab944 |
|
BLAKE2b-256 | 32d6f3d0d2395a5dec9b0cffa6598a8fa8c175c7895b0803ab01a6c575b9dc6e |
Close
Hashes for pepperize.cdk_security_group-0.0.45-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c29e9e7e85db4ff145b5b4e99426e3a1b7d0f6417a89a4e0f340f44e13286890 |
|
MD5 | f487f648046a1800aab8df1c1e590a4a |
|
BLAKE2b-256 | eb4ca4814dac57d01a3c6bec148eeab14640565f766be6fdb21fdf4f7f87169f |