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.323.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c20418519e8c154e2e47f7fd0eb2e4d3734d422fe36c2219cbce43c70925cc4d |
|
MD5 | 186d9eb4f3b629649bcd5776a6f025a6 |
|
BLAKE2b-256 | 5de7b847a321c60f9ec1c742bdf3898bb0739d5760a6b182d039e2f0e3f33768 |
Close
Hashes for pepperize.cdk_security_group-0.0.323-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8cc370af44d4a5c8d373e81cb71765a305df109291ac0600f543caef93cfb541 |
|
MD5 | a6bffa5f7e6b75fc4f2a11f87b77a923 |
|
BLAKE2b-256 | 7d9b6acc21eb003cc550fb42dc4b2424c72726905cee87677eeeb30d3f3734c9 |