0
0
mirror of https://github.com/thegeeklab/wp-opentofu.git synced 2024-06-03 04:49:42 +02:00
Commit Graph

51 Commits

Author SHA1 Message Date
Tony Li
99c5f3f0b1
remove -lock and -lock-timeout for terraform init
https://www.terraform.io/upgrade-guides/0-15.html#other-minor-command-line-behavior-changes

> The -lock and -lock-timeout options are no longer available for the terraform init command. Locking applies to operations that can potentially change remote objects, to help ensure that two concurrent Terraform processes don't try to run conflicting operations, but terraform init does not interact with any providers in order to possibly effect such changes.
> These options didn't do anything in the terraform init command before, and so you can remove them from any automated calls with no change in behavior.
2021-07-08 11:45:34 -07:00
Roman Dushko
4fc3bd0b79
fix: -force is deprecated, use -auto-approve to delete in tf15 2021-05-21 14:58:59 +02:00
Joel Damata
079b8769d1 rename to disable_refrsh 2020-08-14 16:43:44 -04:00
Joel Damata
10db279a6d add the -refresh option to plan and apply 2020-08-11 15:32:23 -04:00
Neemias Junior
5876dd5a26
returning true only when all credentials are set 2020-02-12 10:11:46 -06:00
Neemias Junior
8d8f5c4d78
verifying the credentials before assumeRole fn 2020-02-12 10:11:46 -06:00
Neemias Junior
efe3702937
revert godotenv.Load to main.go 2020-02-12 10:11:46 -06:00
Neemias Junior
22f9a710f1
Loading credentials from env_file parameter 2020-02-12 10:11:11 -06:00
Jacob McCann
17dc452961
chore: linting 2019-11-26 08:56:24 -06:00
Jacob McCann
04fa44b4b6
chore: linting 2019-11-26 08:55:25 -06:00
Gurarpit Singh
077032840d
Update plugin.go 2019-11-26 08:51:09 -06:00
Gurarpit Singh
839bd22410
fix tfValidate case 2019-11-09 23:51:11 +00:00
Gurarpit Singh
1b2911a03e
Remove vars from tf validate 2019-11-09 22:20:15 +00:00
Caio Quirino
5f01ae24b6
Changed implementation to make the code simpler by setting the env var 2019-08-14 18:06:35 +02:00
Caio Quirino da Silva
13a6625b51
Override environment variables only when changed
When using Command.Env, if you send nil as a value, it will use all of the environment variables from os.Environ() when executing the command.
In order to not break the current tests and be coherent with the current relationship, we are appending the created environment variables with os.Environ() only when we have at least 1 environment variable to override.
2019-07-22 15:16:20 +02:00
Caio Quirino
5ba916070a
Added tf_data_dir parameter and changed plugin to respect TF_DATA_DIR
This commit will enable the plugin to do parallel builds.
The first change is to use Terraform's TF_DATA_DIR environment variable to change the state directory so they will not conflict each other in parallel executions
The second change is to change the plan's output to a different file so they will not be overriden by another parallel execution
2019-07-17 15:48:56 +02:00
Robert Stettner
a58086163a Added fmt action 2019-02-04 17:21:54 +00:00
Jacob McCann
d11ee9dc0a refactor generating args for vars and var-files 2018-07-31 13:53:20 -05:00
Jacob McCann
779aa5abaa Describe some public struct and func 2018-07-31 13:35:04 -05:00
Luis Silva
1198e5b02d Improve argument parsing formatting 2018-07-30 08:21:00 +01:00
Luis Silva
4ebb830452 Add -var-file and -var to destroy operation ; Go fmt the code 2018-07-27 08:32:19 +01:00
Jacob McCann
81e17a4339
Merge pull request #58 from jmccann/commands
Provide commands to run via actions
2018-04-25 07:53:17 -05:00
Florian Bertholin
0ef1c728e1 Add .netrc support 2018-04-06 13:43:17 +02:00
Jacob McCann
feef3866df Remove forcing a call on plan with apply or destroy actions 2018-02-14 10:16:14 -06:00
Jacob McCann
42a10997d5 Add a valid action to error message 2018-02-14 09:59:18 -06:00
Jacob McCann
5401f4f43f (Mostly) alphabetize functions 2018-02-14 09:47:07 -06:00
Jacob McCann
f308949c4a Add comment to CopyTfEnv 2018-02-14 09:36:56 -06:00
Jacob McCann
a3571a2b10 Provide actions to run 2018-02-14 09:35:07 -06:00
Jacob McCann
3a672c7471 Pass var files to validate 2018-02-01 16:03:39 -06:00
Justin Ryan
bd9b9abb02 include lock args on plan/apply/destroy 2017-10-04 14:07:05 -04:00
Jacob McCann
0d1b8d291b Append vars to validate command 2017-09-06 14:12:54 -05:00
Jacob McCann
29ef683a08 Ability to override version of terraform used 2017-09-06 13:52:01 -05:00
Jacob McCann
9749b0b8f9 Fix parsing values containing = from os environment 2017-09-06 10:35:48 -05:00
Jacob McCann
69e77144a1 Remove secrets handling and add copying TF_VAR_ vars to lowercase names 2017-09-06 10:35:48 -05:00
marcin.suterski
ff7e2e547e
Add support for terraform destroy command 2017-08-08 17:16:20 -04:00
Jacob McCann
de4bd0bd5d Remove debug line 2017-05-12 10:17:08 -05:00
Jacob McCann
7b13306909 Allow multiple backend-config options 2017-05-12 10:06:54 -05:00
Jacob McCann
eb649f82d7 Merge pull request #41 from msuterski/tf-0.9.4
Tf 0.9.4
2017-05-12 08:39:29 -05:00
marcin.suterski
346612f2fa
Match lock option name to TF CLI 2017-05-11 12:40:08 -04:00
marcin.suterski
73851ed5d8
Remove remote struct and option lookup since they are not being used any more 2017-05-11 12:34:37 -04:00
marcin.suterski
cbbcf0bd65
Match plugin option names with terraform's CLI options 2017-05-11 12:20:22 -04:00
Jacob McCann
6e80f02d18 Simplify args to pass to command functions 2017-05-10 08:28:27 -05:00
marcin.suterski
f50b50b268
Fix spelling 2017-05-08 11:44:08 -04:00
marcin.suterski
037235f5f5
Remove debug 2017-05-08 11:42:06 -04:00
marcin.suterski
ceefb39d61
Add init command for TF 0.9.x 2017-05-08 11:40:14 -04:00
Nic Maki
eede51fea6 added ability to pass -var-file args to plan 2017-02-06 18:39:00 -06:00
Edwin.Avalos
a80c785325 Implement validate command
Credit to @ewbankkit for the original code. I found it worthwhile to take revive the PR off the current master
2016-12-23 18:00:20 -06:00
Edwin.Avalos
c0e63defcd Implement exportSecrets
Allows us to set environment variables that could be the named the same between multiple steps, but have different values due to enivronmental differences.

This is a redo of #28 because I'm bad at git. The secrets are exported so that they can be used in any other flag in this plugin.
2016-12-23 09:03:01 -06:00
edwinavalos
4197abea8d Adding targets section for configuration (#30)
* Adding targets section for configuration

Will add a --target <resource> for each item in a comma separated list to the plan and apply commands

Updated the docs to show the new behavior. If left undefined there is no regression in functionality.

* Combine the --target append steps

No reason to waste lines

* Updating docs for YAML list of strings

* Documentation for single and multiple targets
2016-12-20 19:43:45 -06:00
Jacob McCann
ef64a0f2a3 Use logrus for logging messages 2016-10-09 10:38:37 +05:30