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.471.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 756a8c978e0013ae314d5314aed61c8fac5516be393331087ae5f3686f6e08ff |
|
MD5 | 648e965e86882ac75e4f025af7b3102c |
|
BLAKE2b-256 | bf7dd717e4a2f0ef1f757d8666ee7f5c18319456408adfd7912c00db9d27fd73 |
Close
Hashes for pepperize.cdk_security_group-0.0.471-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8fcf221c2b125636358046e1e2044c51b84a021706b04ed9e830b74f4aee1493 |
|
MD5 | 73a5b726eb8f79012266177e4db84c24 |
|
BLAKE2b-256 | 2ac6009c75db66d15fc28478632dc5902ee9e3198bcc0d9da31450149e41b4ae |