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.523.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e21e9df411a2d5beec4c54fb915bf9697ef8914120ae45ccdc975d410d12eef |
|
MD5 | cbbef8d52928f9638f3205e9873fb0d3 |
|
BLAKE2b-256 | efeb14646eaa85f307c2c192dd336e30790d2a0f32495601e645aa9884564062 |
Close
Hashes for pepperize.cdk_security_group-0.0.523-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe0d44faa7aadb9458e8f22f24f50225cb225739a601d0a0343dc40e3319f059 |
|
MD5 | 40495b81c1591ddf2354aae50a5e7e1b |
|
BLAKE2b-256 | 751f53fc136abb4b13e0556c135398b7e6f6b1e54d2d1c8f7cb83a5dfdfaa3bd |