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.545.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d696e90a0334bf790be1e2510732d0eff92b69ff31d6870d9afa8379d840e2cf |
|
MD5 | 2c0509994d6f3ef70e6cd1611b9a176e |
|
BLAKE2b-256 | 063e5ebe0860cce9ebe748aeeafe976ce1aacdc07cb595046b7c9c23bafed5f0 |
Close
Hashes for pepperize.cdk_security_group-0.0.545-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8ae43e2e7095b8aa357b5706db7604a0ae43c57d80ae798ec27822d16916ab1 |
|
MD5 | 56990f576e27eef1ef2a90b636ea28e6 |
|
BLAKE2b-256 | 65c3ca38a35ab2262c1e5ee3230757e51498f48dea2ddcda769779bb47a3af3b |