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.451.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87f8d75187e34212cb599517674da97b4e6f8a92e82d35e8ef9a9a391aa6cdb8 |
|
MD5 | 36d79c78af933a214370b4bb005adccc |
|
BLAKE2b-256 | 98fac6ba7b26a591dc8c600b8ff66b8f18ff9cbf7754ab8b1b86d3d383873a6b |
Close
Hashes for pepperize.cdk_security_group-0.0.451-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f3974981f0438ea58719cef4fbea36352a6a252cd500d32de23cd8a564cc17a |
|
MD5 | cde56ad0e0d6e418dbfd7ffe25da6785 |
|
BLAKE2b-256 | f87f87b70b12f07e93e384812eb881b178fd312d970513fe1b8c7b7ff904583f |