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
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.101.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | eaed8997efb8bd00ebba14ef4350ed41de08d4da4d39729d8b8f2eee2a273061 |
|
MD5 | 9f18e5ce672a2d2c1e7aad920f831533 |
|
BLAKE2b-256 | 7bd4c37d9bbc5f50cae49e03a1da7dd179448611ddd507e8736b4a025789dbfa |
Close
Hashes for pepperize.cdk_security_group-0.0.101-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b61eb4a312aff9f9c2a82316bc0fd89f43f70a5af4afeb0c863edb76923092ed |
|
MD5 | cb85202bbe1705d510ff8625193d278f |
|
BLAKE2b-256 | a2bb2cf9a211a6e1bc7022f7389673dd4c3c7643491907f063e08ffa41827c47 |