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.429.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 577c09361d67e2d4fe43b88cc227890a6eded771cea7f11c2e57cb9ed9e7b7a8 |
|
MD5 | 0c70e07f075118e3cefc66e2d8d5fefb |
|
BLAKE2b-256 | 9e33977401848db4bb8122cdf0d012751c548728f20b6e4baf1856a4f29a5b54 |
Close
Hashes for pepperize.cdk_security_group-0.0.429-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa3c99c5a1e8337c1306f2db10a0fd687f891bb6dcf62346a497efaed483d34a |
|
MD5 | 836acb2a2ef61725fab03b8cd5b91c37 |
|
BLAKE2b-256 | 3a87b1621bd76e6c117b339629c8043004d25a396385160ef920c3280482e3ef |