forked from fluidattacks/makes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request fluidattacks#1400 from dsalaza4/main
refac(back): fluidattacks#1378 deprecate tf workspaces
- Loading branch information
Showing
6 changed files
with
0 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,60 +76,3 @@ m github:fluidattacks/[email protected] /utils/makeSopsEncryptedFile \ | |
|
||
- `kms_key_arn` is the arn of the key you will use for encrypting the file. | ||
- `output` is the path for your resulting encrypted file. | ||
|
||
## workspaceForTerraformFromEnv | ||
|
||
Sets a [Terraform Workspace](https://developer.hashicorp.com/terraform/language/state/workspaces) | ||
specified via environment variable. | ||
|
||
Types: | ||
|
||
- workspaceForTerraformFromEnv: | ||
- modules (`attrsOf moduleType`): Optional. | ||
Terraform modules to switch workspace. | ||
Defaults to `{ }`. | ||
- moduleType (`submodule`): | ||
- setup (`listOf package`): Optional. | ||
[Makes Environment](./environment.md) | ||
or [Makes Secrets](./secrets.md) | ||
to `source` (as in Bash's `source`) | ||
before anything else. | ||
Defaults to `[ ]`. | ||
- src (`str`): | ||
Path to the Terraform module. | ||
- variable (`str`): Optional. | ||
Name of the environment variable that contains | ||
the name of the workspace you want to use. | ||
Defaults to `""`. | ||
When `""` provided, workspace is `default`. | ||
- version (`enum [ "0.14" "0.15" "1.0" ]`): | ||
Terraform version your module is built with. | ||
|
||
Example: | ||
|
||
=== "makes.nix" | ||
|
||
```nix | ||
{ | ||
testTerraform = { | ||
modules = { | ||
module1 = { | ||
setup = [ | ||
outputs."/workspaceForTerraformFromEnv/module1" | ||
]; | ||
src = "/my/module1"; | ||
version = "0.14"; | ||
}; | ||
}; | ||
}; | ||
workspaceForTerraformFromEnv = { | ||
modules = { | ||
module1 = { | ||
src = "/my/module1"; | ||
variable = "CI_COMMIT_REF_NAME"; | ||
version = "0.14"; | ||
}; | ||
}; | ||
}; | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 0 additions & 14 deletions
14
src/args/make-workspace-for-terraform-from-env/default.nix
This file was deleted.
Oops, something went wrong.
50 changes: 0 additions & 50 deletions
50
src/args/make-workspace-for-terraform-from-env/template.sh
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 0 additions & 42 deletions
42
src/evaluator/modules/workspace-for-terraform-from-env/default.nix
This file was deleted.
Oops, something went wrong.