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.14.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca7fed69b6936141c2eb6d4d7f123174c42e5602bbdca50a417b6e74fa8ccee9 |
|
MD5 | ac5ad0aaf14fc1b1f411df066cbd17ac |
|
BLAKE2b-256 | dfdf6e1e49bb0cbea900827f0438cace0e9922b28dd63499879bf25b934e5d47 |
Close
Hashes for pepperize.cdk_security_group-0.0.14-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25d97c7dc66b195cfbbeaa5641d79371a419e04031fb65c764cdda92d08aa492 |
|
MD5 | f614b07b2f08e03f27f1e54255e99321 |
|
BLAKE2b-256 | 72bf678d7aaa731b9e08b9798590c1e907d6d6cc18fe92c126d043eac8b1e302 |