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.520.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a42563efb2a65c68e2fa116e85dd028d6b6588313f0d4c47ba6c0576b3f76ef3 |
|
MD5 | c44b34d80037b785ab24da1f0248bb68 |
|
BLAKE2b-256 | 8b1f6ef8f154a3806e673f7122ab11ae3fba9567130ef29c373f7087facb344a |
Close
Hashes for pepperize.cdk_security_group-0.0.520-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0aa1d507c95339607f41161b2cfca05cd7a54c7e980b3d3e1d907623214e5ae9 |
|
MD5 | 2a042c3034a0738e0aa9e19d27a78bdd |
|
BLAKE2b-256 | 06411df3d22a79afff35a833f58251cf631d6c6bfd7eec215766065e0c4b48f5 |