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.382.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78a22e312b654a7a82b1bd8ffa760a70f2ca41b9680af23a1bc46fc3eea819a4 |
|
MD5 | 13098605d649f895fc38caf57204e76d |
|
BLAKE2b-256 | 6c7fb70c7632cbcf0c9e7aabb993e9a39797e7befe59d50c1d288f04c31ae0e6 |
Close
Hashes for pepperize.cdk_security_group-0.0.382-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8065ef94c53fc44e301d4e84b6e76ae479ecefe0fed68353372b81bb66623b17 |
|
MD5 | 87776627edd29121a9716b2c0a96d309 |
|
BLAKE2b-256 | 67e64dfc12bf34f30482bfbc7ea775f9de6057a900878eb327ca4995dca6e6e0 |