The Artifactory Provider allows you to manage resources in Artifactory using Terraform.
The work here assumes you have an Artifactory instance running and accessible.
If not already installed, you can easily install Artifactory in Kubernetes with the Artifactory Install Example in this repository.
You can also easily install Artifactory in Kubernetes directly with helm by running the following command
helm upgrade --install artifactory jfrog/artifactory --set postgresql.postgresqlPassword="password1"
Create an Artifactory access token and store it in the terraform.tfvars file
artifactory_url = "http://localhost"
artifactory_access_token = "eyJ2ZXI..."
The main.tf file has the configuration that Terraform will use to configure the Artifactory server.
- Initialize the Terraform configuration by running the following command
terraform init
- Plan the Terraform configuration by running the following command
terraform plan
- Apply the Terraform configuration by running the following command
terraform apply
- When you are done, you can destroy the resources by running the following command
terraform destroy