Skip to content

Instantly share code, notes, and snippets.

@madelaney
Last active March 20, 2024 19:17
Show Gist options
  • Save madelaney/3ea8e36c0789fa96341b7b7dd2d89622 to your computer and use it in GitHub Desktop.
Save madelaney/3ea8e36c0789fa96341b7b7dd2d89622 to your computer and use it in GitHub Desktop.
artifatory terraform provider bug
terraform {
required_providers {
artifactory = {
source = "jfrog/artifactory"
version = "~> 10.0"
}
platform = {
source = "jfrog/platform"
version = "~> 1.4"
}
}
}
provider "artifactory" {
url = var.artifactory_url
access_token = var.artifactory_access_token
}
provider "platform" {
url = var.artifactory_url
access_token = var.artifactory_access_token
}
variable "artifactory_url" {
type = string
default = "http://localhost:8081"
description = "The base url to artifactory to configure"
}
variable "artifactory_access_token" {
type = string
description = "The api token / access key to authenticate to artifactory with"
}
resource "platform_permission" "snapshot-deployer" {
name = "snapshot-deployer"
artifact = {
targets = [
{
name = "generic-local"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment