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.292.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 262ae3f0276b39d5be17d1cdaa048075c1bb1a36269e834764bbb29e67b45e40 |
|
MD5 | 991d251094453384ac61c2e18077c6da |
|
BLAKE2b-256 | c257db40d00df7019f10c69d61dd928d971abc0b8806e8909572adaf635b85b2 |
Close
Hashes for pepperize.cdk_security_group-0.0.292-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cfbe9983bbe74bb5a990c6c9febd9ad985a66cc7cb308c4a830a28617f9ae802 |
|
MD5 | fffffeb9470d717dc4ca69c4bce4e5d3 |
|
BLAKE2b-256 | e2b99e95ec5100ffd8562d7e9345406ad029f3b773ddf763676abd6ca816b63f |