@@ -49,6 +49,8 @@ in just a few steps, in any technology.
49
49
- [ lintWithLizard] ( #lintwithlizard )
50
50
- [ Testing] ( #testing )
51
51
- [ testTerraform] ( #testterraform )
52
+ - [ Deployment] ( #deployment )
53
+ - [ deployTerraform] ( #deployterraform )
52
54
- [ Pinning] ( #pinning )
53
55
- [ inputs] ( #inputs )
54
56
- [ requiredMakesVersion] ( #requiredmakesversion )
@@ -949,7 +951,9 @@ Example `makes.nix`:
949
951
}
950
952
```
951
953
952
- Example invocation: ` $ m . /lintTerraform `
954
+ Example invocation: ` $ m . /lintTerraform/module1 `
955
+
956
+ Example invocation: ` $ m . /lintTerraform/module2 `
953
957
954
958
### lintWithLizard
955
959
@@ -1026,7 +1030,57 @@ Example `makes.nix`:
1026
1030
}
1027
1031
```
1028
1032
1029
- Example invocation: ` $ m . /testTerraform `
1033
+ Example invocation: ` $ m . /testTerraform/module1 `
1034
+
1035
+ Example invocation: ` $ m . /testTerraform/module2 `
1036
+
1037
+ ## Deployment
1038
+
1039
+ ### deployTerraform
1040
+
1041
+ Deploy [ Terraform] [ TERRAFORM ] code
1042
+ by performing a ` terraform apply `
1043
+ over the specified [ Terraform] [ TERRAFORM ] modules.
1044
+
1045
+ Attributes:
1046
+
1047
+ - modules (` attrsOf moduleType ` ): Optional.
1048
+ Path to [ Terraform] [ TERRAFORM ] modules to lint.
1049
+ Defaults to ` { } ` .
1050
+
1051
+ Custom Types:
1052
+
1053
+ - moduleType (` submodule ` ):
1054
+ - authentication (` listOf package ` ): Optional.
1055
+ [ Makes Secrets] [ MAKES_SECRETS ] to use (if required by your module).
1056
+ Defaults to ` [ ] ` .
1057
+ - src (` str ` ):
1058
+ Path to the [ Terraform] [ TERRAFORM ] module.
1059
+ - version (` enum [ "0.12" "0.13" "0.14" "0.15" "0.16" ] ` ):
1060
+ [ Terraform] [ TERRAFORM ] version your module is built with.
1061
+
1062
+ Example ` makes.nix ` :
1063
+
1064
+ ``` nix
1065
+ {
1066
+ deployTerraform = {
1067
+ modules = {
1068
+ module1 = {
1069
+ src = "/my/module1";
1070
+ version = "0.12";
1071
+ };
1072
+ module2 = {
1073
+ src = "/my/module2";
1074
+ version = "0.16";
1075
+ };
1076
+ };
1077
+ };
1078
+ }
1079
+ ```
1080
+
1081
+ Example invocation: ` $ m . /deployTerraform/module1 `
1082
+
1083
+ Example invocation: ` $ m . /deployTerraform/module2 `
1030
1084
1031
1085
## Pinning
1032
1086
@@ -1766,6 +1820,8 @@ Examples:
1766
1820
https://github.com/fluidattacks/makes/commit/01fcd5790dd54b117da63bcc2480437135da8bb3)
1767
1821
- [feat(build): #232 lint terraform](
1768
1822
https://github.com/fluidattacks/makes/commit/081835b563c712b7650dbc5bf1e306d4aff159cf)
1823
+ - [feat(build): #232 test terraform](
1824
+ https://github.com/fluidattacks/makes/commit/571cf059b521cb97396210f9fe4659ee74f675b4)
1769
1825
- [feat(build): #252 aws secrets from env](
1770
1826
https://github.com/fluidattacks/makes/commit/1c9f06a809bd92d56939d5809ce46058856fdf0a)
1771
1827
- [feat(build): #232 make parallel utils](
0 commit comments