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.172.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c54f70d1bebef589c6bdfecb57753a59ad71f9c2cea2b24fd56cd0d0895b6d3 |
|
MD5 | 0934a635ce9fbcbb2802e070616fe9f4 |
|
BLAKE2b-256 | 1e67ed3bb65cc3578b63f639c688c8d189b20c25a0a6963104d94979c2a86a63 |
Close
Hashes for pepperize.cdk_security_group-0.0.172-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26d584e20794d0c50b0d066ddc2a567e59629f5471c87ee74c8e8261392037ff |
|
MD5 | 41bf741ae450ffc6fcf3f74ed65a13af |
|
BLAKE2b-256 | b3603057732396bd34e3f74ce7087ef3fca762dd36ccccec07370b61c5d97afb |