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.396.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32ed4e102350a909af2f83654aa99acf399ec5f7aaaf88a964a71b095a63261d |
|
MD5 | 3fa109166dc1d1c128ac2c52440ae76f |
|
BLAKE2b-256 | a841582b587fce073c748316de14a3310f5679990c2a242e04a3f868e89a03ca |
Close
Hashes for pepperize.cdk_security_group-0.0.396-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e295e5d719f49f00008363d9942b3d4a5ab5bcb818ef394dcb280854fa79c9f9 |
|
MD5 | c9c1bf0d7953ef0a1e59e540af46b734 |
|
BLAKE2b-256 | 45637032e9603c1d4e2c42382f063d388e5d4f3a4ec743d788da8b7c38ae2fbc |