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.500.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f730ca2e4b9d79be586249a52035c264a746958e3a1856aa0b9250cfccf3de4d |
|
MD5 | a18902eae42f549b3d98b9f588b56e0e |
|
BLAKE2b-256 | 82115e4ea14c0d2ca26ba8deb4017ccea0ae45afa38dbbd621cc6e03b7b0ac14 |
Close
Hashes for pepperize.cdk_security_group-0.0.500-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | effc25c34294cc9d5ee7e746dd9158d7a24ce031d34b1dc3e46fce03cc6cfb56 |
|
MD5 | bea2f9a396ecc51ba54ae4136812a84b |
|
BLAKE2b-256 | 4a7749fbcc14a6e9bcca3b58ea00b7acc22cacc70cf83474b47270671a33069c |