jfrog / terraform-provider-myjfrog

Terraform provider to manage MyJFrog portal
https://my.jfrog.com/
Apache License 2.0
0 stars 1 forks source link
configuration-as-code golang infrastructure-as-code jfrog terraform terraform-provider

Terraform & OpenTofu Acceptance Tests

Terraform Provider for MyJFrog

Quick Start

Create a new Terraform file with myjfrog resource:

HCL Example

# Required for Terraform 1.0 and later
terraform {
  required_providers {
    myjfrog = {
      source  = "jfrog/myjfrog"
      version = "1.0.0"
    }
  }
}

provider "myfrog" {
  // supply JFROG_MYJFROG_API_TOKEN as env var
}

resource "myjfrog_ip_allowlist" "myjfrog-ip-allowlist" {
  server_name = "my-jpd-server-name"
  ips = [
    "1.1.1.7/1",
    "2.2.2.7/1",
  ]
}

Initialize Terrform:

$ terraform init

Plan (or Apply):

$ terraform plan

Detailed documentation of the resource and attributes are on Terraform Registry.

Versioning

In general, this project follows semver as closely as we can for tagging releases of the package. We've adopted the following versioning policy:

Contributors

See the contribution guide.

License

Copyright (c) 2024 JFrog.

Apache 2.0 licensed, see LICENSE file.