Last active
February 23, 2023 09:50
-
-
Save alanplatt/33b5237c963545ab0269ee98af048743 to your computer and use it in GitHub Desktop.
gitlab terraform backend setup
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
TF_HTTP_ADDRESS=https://gitlab.com/api/v4/projects/4480/terraform/state/${TF_VAR_foo} | |
TF_HTTP_LOCK_METHOD=POST | |
TF_HTTP_LOCK_ADDRESS=https://gitlab.com/api/v4/projects/4480/terraform/state/${TF_VAR_foo}/lock | |
TF_HTTP_UNLOCK_ADDRESS=https://gitlab.com/api/v4/projects/4480/terraform/state/${TF_VAR_foo}/lock | |
TF_HTTP_UNLOCK_METHOD=DELETE | |
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
terraform { | |
backend "http" {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment