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.434.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea697274a5aca4ee935aec8ed3c0e42945af47948e88705842c10067d3fbbe44 |
|
MD5 | d90bc3233188351aa8b36b91d8ddfb97 |
|
BLAKE2b-256 | 89f7194cea6d07278116a65c78c33fe2f736aece175db10d087b1f8cc33ca8bf |
Close
Hashes for pepperize.cdk_security_group-0.0.434-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd3d235e39df3fd809c22960437c8eb7b0416615517e25b2e422b9727f180245 |
|
MD5 | 1acb7943d2d3513cd052cf59b3a8c86c |
|
BLAKE2b-256 | a97df2a02f69527e4c94840a3208f431a3ca662c110340fba91311e8e2299f28 |