Get Started with AppTrust Provider

The JFrog AppTrust Terraform Provider enables you to manage your application lifecycle as infrastructure-as-code. You can programmatically create applications, manage application versions and their source artifacts, promote versions through lifecycle stages, execute releases and rollbacks, and bind specific package versions to applications. This allows you to automate and version-control your entire application governance workflow in Terraform.

The procedure below will help you get started with the Terraform provider for AppTrust.

In addition, detailed information, including prerequisites, software requirements, setup, authentication details, resource and data sources, and examples are specified in the Terraform documentation, Terraform Provider for AppTrust.

To initialize the AppTrust Provider:

  1. Copy and paste the code below into your Terraform configuration.
terraform {
  required_providers {
    apptrust = {
      source  = "jfrog/apptrust"
      version = "1.0.0"
    }
  }
}

# you can use also the environment variables instead
# export JFROG_URL="https://myinstance.jfrog.io/artifactory"
# export JFROG_ACCESS_TOKEN="my-access-token"

provider "apptrust" {
  url          = "https://myinstance.jfrog.io/artifactory"
  access_token = "my-access-token"
}

resource "apptrust_application" "example" {
  project_key      = "my-project"
  application_key  = "my-web-app"
  application_name = "My Web Application"
  description      = "Application managed by Terraform"
  maturity_level   = "production"
  criticality      = "high"
}
  1. Run: terraform init

From this point, you can create applications, application versions, promote application versions, and perform many other operations, as described in the Terraform Provider documentation.

What's Next?