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.360.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a80382da62faa2f19185a2067b5aaa1259ad763dd41d6ff1ee9c4b64f80db794 |
|
MD5 | 8c355c19b84823c859aa16ef593ec378 |
|
BLAKE2b-256 | 11acca0e1748c6323c6eb2f65cd468e2b8ba9dacb95101c6d89ae01f68811d8c |
Close
Hashes for pepperize.cdk_security_group-0.0.360-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ead52a8ec52c9ca5ff9bd7788813a4d4fc4db0450855df0bbbcabe194f8a0f5 |
|
MD5 | d7d9ad423e950eb664a5a726b7513074 |
|
BLAKE2b-256 | a249419c0097b672561ceeee2dd480ef597fc523cc4ae84e61a5538bb3ee79c2 |