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.341.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae369544360b395794fef7277ca3ffd75019ba1ec999173a314f80474e773577 |
|
MD5 | 4df2095d8b46c16829868cdd27f57d43 |
|
BLAKE2b-256 | db87a15e12d8128975f157da0dcf8bdca66542c444cdb079bcd5393206c0212d |
Close
Hashes for pepperize.cdk_security_group-0.0.341-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae1765bfc6899b83aa2c8a8a0f3ce4681ead4358217092c07941765ac226ff2b |
|
MD5 | 93b71c5c2c57587c16cbe59eb151b1e8 |
|
BLAKE2b-256 | 43a94b2bfeaf54404f3ffef1a5e2e4265db29727381a456652fc48058c9ce8db |