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.261.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f89ef79322ac605f51f14b3d50963774aef110200f66448c774f318e5d08036 |
|
MD5 | c6cfc227b2488596771f8b0fd74765ec |
|
BLAKE2b-256 | f51b36cc64539010e6366e49f55c536075d77e4479f8c2c6972bdccca7e58089 |
Close
Hashes for pepperize.cdk_security_group-0.0.261-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 684edf3459ab576344bfcdd24690955645eebf0eacc6174f69ec7fb235a210f0 |
|
MD5 | 9c761fa9f9fa2a242277d5acd53f8d25 |
|
BLAKE2b-256 | 2599c187cc8f9bcd707e11d6856a8a6569bc065441ed842e322ff319b82a3c8f |