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.298.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71ec56305b771d3639b48d2d87588bc2afecbee93b622eb38a97184480d06686 |
|
MD5 | 4e7e45d69371d9096ab2551a575e6cc6 |
|
BLAKE2b-256 | 3ce3d20550f120f357b6f91648d2f6720630f10efa06b00735b2937f384af3cd |
Close
Hashes for pepperize.cdk_security_group-0.0.298-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9462707149431b59f1aadf17e71d6b237b1e24496ab3df2915fb28aa609157ba |
|
MD5 | dc19975e237e45fedfce3359cb3ff270 |
|
BLAKE2b-256 | 567542d2193e26e25c830ad280fd9959a0f52eaf550e6d7e2dd8590de1352f50 |