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.435.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a3c5c1d977262b1cda976aac4aba79a032f53d297942aadedb1c09670dfd3c3 |
|
MD5 | a4b977136623a11c8dacd29a6a4f5e90 |
|
BLAKE2b-256 | eca406b92f49010c1f396376cd8f11290ee21faa49f79c9da7e7707dcd494403 |
Close
Hashes for pepperize.cdk_security_group-0.0.435-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d11e6474601114807c8f24f5d886a2e8181c82964ae0e7362aad8e9a6f706c9a |
|
MD5 | 08f7d41e74b52ec64818373bae946ab1 |
|
BLAKE2b-256 | 96d4c2691ad48b549f4519e241f7c9f7ad0ef55cd6997a6308d23f28c71864eb |