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.208.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c4dc71f0ff0b2937074cce7c9235f3b7cb00f742966977407572b418aea5d97 |
|
MD5 | 3ae791fe3666861e4ce8dabceda14ebb |
|
BLAKE2b-256 | 7bde556d8de320e56d5dfbf50df8c36eaef965fdf71d6f0fefa2a41dbb9d9263 |
Close
Hashes for pepperize.cdk_security_group-0.0.208-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6c87fd9cc6f6f0c020dd2d98eaa773a95ef18306d998739f74d76f4e02aeaf9 |
|
MD5 | eb4b0fe04b48b3d5c3ea1dec26d31c0d |
|
BLAKE2b-256 | 7436b9fe7b628da091aff552d2aa17791a5e8191f6fd51aa8a352ad9f7904bad |