Skip to main content

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

Project description

GitHub npm (scoped) PyPI Nuget 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

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.64.tar.gz (19.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pepperize.cdk_security_group-0.0.64-py3-none-any.whl (19.5 kB view details)

Uploaded Python 3

File details

Details for the file pepperize.cdk-security-group-0.0.64.tar.gz.

File metadata

File hashes

Hashes for pepperize.cdk-security-group-0.0.64.tar.gz
Algorithm Hash digest
SHA256 4438b06c984b6fbf3e4b209711939bafeb657f9c79ac7a30f454f4d37d3716d9
MD5 439cdfd4e871d8f86e736b6fe029e3fe
BLAKE2b-256 58d46e480ac5171559d6500488f03bc5d071859b38b069bc2d0e12722a8c80a9

See more details on using hashes here.

File details

Details for the file pepperize.cdk_security_group-0.0.64-py3-none-any.whl.

File metadata

File hashes

Hashes for pepperize.cdk_security_group-0.0.64-py3-none-any.whl
Algorithm Hash digest
SHA256 2d3211b98d9221dff28116fae1e609d17cbc566101d3a7d1160a23921122dc24
MD5 3f2d7cfdab00f8956d97f48c13ed450a
BLAKE2b-256 1a3e7903793851a45cf6798b378843b6fa9d6379cbb575f9063a56dac34b7a64

See more details on using hashes here.

Supported by

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