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.489.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 532fa661e79eed1f9be542988c7c9340d834c94829f3aeba02898aef18085ec6 |
|
MD5 | 1919544058f1e6d151cb2f1d72fa9710 |
|
BLAKE2b-256 | cd516dfbd6da94eea80fba72879ea1cc0cbc535a096b3581664f867badae4bdf |
Close
Hashes for pepperize.cdk_security_group-0.0.489-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 963397e71436eaddb760a2faff19ed6729c832c3d9f7ba42e1ae33cf9aa919ec |
|
MD5 | 9b184ea742bacfa0da1a3ffcb0f770d0 |
|
BLAKE2b-256 | 18195d46af7e8f299f34a76fded94a67bc80457241e131c7bdc9566c40261b1f |