From 6df0acba7d35c17bc0e862ce313d12cd05bb3c0c Mon Sep 17 00:00:00 2001 From: Eldad Assis Date: Fri, 15 Nov 2024 13:24:26 -0700 Subject: [PATCH] Add a snippet of using Artifactory as the Terraform Backend --- 6.artifactory-aws-install/main.tf | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/6.artifactory-aws-install/main.tf b/6.artifactory-aws-install/main.tf index fb0ad79..ed784a6 100644 --- a/6.artifactory-aws-install/main.tf +++ b/6.artifactory-aws-install/main.tf @@ -1,6 +1,18 @@ # Setup the providers terraform { + ## Configure the remote backend (Artifactory) + ## This will store the state file in Artifactory. + ## Follow https://jfrog.com/help/r/jfrog-artifactory-documentation/terraform-backend-repository + ## Create a new terraform workspace in Artifactory named "jfrog" + # backend "remote" { + # hostname = "eldada.jfrog.io" + # organization = "terraform-backend" + # workspaces { + # prefix = "jfrog" + # } + # } + required_providers { # Kubernetes provider aws = {