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.393.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d228542dc9d3627b730e2defa50e4eb73771c66df4894b4c7c348b5baa5bd99a |
|
MD5 | b90ebb7010004f09ae5383b0dd3803a6 |
|
BLAKE2b-256 | f2bf505eaf50848ceddf6acf34dc1cf5caa0fe89f9b0473618204f4efab39ef6 |
Close
Hashes for pepperize.cdk_security_group-0.0.393-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22523bf55b6c850b8d936f7daa2e304dd22966b0b8117b0f4f9f47c40b37584d |
|
MD5 | 43acfd3f6a0ab7477a4773458b7c5415 |
|
BLAKE2b-256 | 5d994d3f0f2d0d945f488c9108e6bf71fc2308da26c77f40b2049b040a9d165d |