Skip to main content

This project provides a CDK construct to create an EC2 SecurityGroup, which property `securityGroupName` returns the GroupName.

Project description

PRs Welcome GitHub npm (scoped) PyPI Nuget Sonatype Nexus (Releases) GitHub Workflow Status (branch) GitHub release (latest SemVer)

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

pepperize.cdk-security-group-0.0.553.tar.gz (22.8 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page