@storm-software/terraform-tools
v0.34.0
Published
Tools for managing Terraform infrastructure within a Nx workspace.
Downloads
219
Readme
[!IMPORTANT] This repository, and the apps, libraries, and tools contained within, is still in it's initial development phase. As a result, bugs and issues are expected with it's usage. When the main development phase completes, a proper release will be performed, the packages will be availible through NPM (and other distributions), and this message will be removed. However, in the meantime, please feel free to report any issues you may come across.
Table of Contents
- Storm Terraform Tools
Storm Terraform Tools
A package containing tools for managing a Storm workspace. It includes various Nx generators and executors for common development tasks.
This library was generated with Nx.
Installing
Using pnpm:
pnpm add -D @storm-software/terraform-tools
npm install -D @storm-software/terraform-tools
yarn add -D @storm-software/terraform-tools
Executors
The following executors are available in this package to invoke common tasks for the workspace's projects:
Terraform plan
Command Executor
Run the `plan` command using the workspaces Terraform IoC configuration files
Example
This executor can be used by executing the following in a command line utility:
nx run my-project:plan
Please note: The plan executor should be included in the desired projects's project.json
file.
Options
The following executor options are available:
| Option | Type | Description | Default |
| --------- | ------ | ------------- | --------- |
| planFile | string
| The path to the plan file to create | "defaultplan" |
Terraform apply
Command Executor
Run the `apply` command using the workspaces Terraform IoC configuration files
Example
This executor can be used by executing the following in a command line utility:
nx run my-project:apply
Please note: The apply executor should be included in the desired projects's project.json
file.
Options
The following executor options are available:
| Option | Type | Description | Default |
| --------- | ------ | ------------- | --------- |
| planFile | string
| The path to the plan file to create | "defaultplan" |
| autoApproval | boolean
| A boolean flag to automatically approve the apply | |
Terraform output
Command Executor
Run the `output` command using the workspaces Terraform IoC configuration files
Example
This executor can be used by executing the following in a command line utility:
nx run my-project:output
Please note: The output executor should be included in the desired projects's project.json
file.
Terraform destroy
Command Executor
Run the `destroy` command using the workspaces Terraform IoC configuration files
Example
This executor can be used by executing the following in a command line utility:
nx run my-project:destroy
Please note: The destroy executor should be included in the desired projects's project.json
file.
Options
The following executor options are available:
| Option | Type | Description | Default |
| --------- | ------ | ------------- | --------- |
| autoApproval | boolean
| A boolean flag to automatically approve the destroy | |
Generators
The following generators are available with this package to assist in workspace management:
Init Storm Terraform Tools Plugin
Init Storm Terraform Tools Plugin.
Options
The following executor options are available:
| Option | Type | Description | Default |
| --------- | ------ | ------------- | --------- |
| skipFormat | boolean
| Skip formatting files. | |
Building
Run nx build terraform-tools
to build the library.
Running unit tests
Run nx test terraform-tools
to execute the unit tests via
Jest.
Storm Workspaces
Storm workspaces are built using Nx, a set of extensible dev tools for monorepos, which helps you develop like Google, Facebook, and Microsoft. Building on top of Nx, the Open System provides a set of tools and patterns that help you scale your monorepo to many teams while keeping the codebase maintainable.
Roadmap
See the open issues for a list of proposed features (and known issues).
- Top Feature Requests (Add your votes using the 👍 reaction)
- Top Bugs (Add your votes using the 👍 reaction)
- Newest Bugs
Support
Reach out to the maintainer at one of the following places:
License
This project is licensed under the Apache License 2.0. Feel free to edit and distribute this template as you like.
See LICENSE for more information.
Changelog
This project adheres to Semantic Versioning. Every release, along with the migration instructions, is documented in the CHANGELOG file
Contributing
First off, thanks for taking the time to contribute! Contributions are what makes the open-source community such an amazing place to learn, inspire, and create. Any contributions you make will benefit everybody else and are greatly appreciated.
Please try to create bug reports that are:
- Reproducible. Include steps to reproduce the problem.
- Specific. Include as much detail as possible: which version, what environment, etc.
- Unique. Do not duplicate existing opened issues.
- Scoped to a Single Bug. One bug per report.
Please adhere to this project's code of conduct.
You can use markdownlint-cli to check for common markdown style inconsistency.
Contributors
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!
Storm Software is an open source software development organization and creator of Acidic, StormStack and StormCloud.
Our mission is to make software development more accessible. Our ideal future is one where anyone can create software without years of prior development experience serving as a barrier to entry. We hope to achieve this via LLMs, Generative AI, and intuitive, high-level data modeling/programming languages.
Join us on Discord to chat with the team, receive release notifications, ask questions, and get involved.
If this sounds interesting, and you would like to help us in creating the next generation of development tools, please reach out on our website or join our Slack channel!