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
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
Built Distribution
Close
Hashes for pepperize.cdk-security-group-0.0.404.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c125bcb0599fe7aa8152319337324a48234b1efaa5910cba4f1ce1fbba0f85b |
|
MD5 | edede199b65f85fb09fbb4e12eea4e85 |
|
BLAKE2b-256 | e388487eadfcd641ead6133ea9763f360f5e5553949801248b148c0a218a1d68 |
Close
Hashes for pepperize.cdk_security_group-0.0.404-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45ac872e3fbf98ab8928cabf6667a4d96c362079787dced469bb5169f48e7b30 |
|
MD5 | 84b7bb7fa62570b72024b416624be2f0 |
|
BLAKE2b-256 | 9d606211f78d04555a2c3113d4334200f1fd6a230f03050b1d95d858eed60d3b |