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.77.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.77-py3-none-any.whl (19.5 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for pepperize.cdk-security-group-0.0.77.tar.gz
Algorithm Hash digest
SHA256 ff319c1ea129cb86c5974bb5a4516e370424e4d65f8b81aee8e1d094d32579f3
MD5 415b700cb0e06e2d6b7b21401e084dcd
BLAKE2b-256 2612012ac90a1cc78d63e40dc8734953899a11efbeea34fa6c3ceb8a5bb33771

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pepperize.cdk_security_group-0.0.77-py3-none-any.whl
Algorithm Hash digest
SHA256 dd7926c8dd4b8190156148d225bd4cd9f399a2b076e71c2789cd80078e8122d8
MD5 9f35e074471caefd8c0ff4b9a1af5fe2
BLAKE2b-256 f9a233d9fa0bbb970b01d20658408f341111a13064a630b8bfca4d7672b571e3

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