-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
After a successful apply, subsequent plan/apply operations fail for any resource that relies upon the /artifactory/api/system/configuration endpoint in JFrog Cloud (as it is disabled).
│ Error: Unable to Refresh Resource
│
│ with artifactory_repository_layout.plugins,
│ on plugins.tf line 1, in resource "artifactory_repository_layout" "plugins":
│ 1: resource "artifactory_repository_layout" "plugins" {
│
│ An unexpected error occurred while attempting to refresh resource state. Please retry the operation or report this issue to the provider
│ developers.
│
│ Error: failed to retrieve data from API: /artifactory/api/system/configuration during Read: {
│ "errors" : [ {
│ "status" : 400,
│ "message" : "Artifactory Online does not support accessing this API endpoint, please contact [email protected] for further assistance if required."
│ } ]
│ }
Requirements for and issue
- A fully functioning terraform snippet that can be copy&pasted (no outside files or ENV vars unless that's part of the issue)
resource "artifactory_repository_layout" "plugins" { name = "test-plugins" artifact_path_pattern = "([org]/)[module]/v[baseRev](-[folderItegRev])/[type]/[plugin<(?:[0-9a-z]+)>](.[ext])" file_integration_revision_regexp = ".*" folder_integration_revision_regexp = "(?:[\\w\\d_.\\/-]+?)?(?:\\.\\d+)*?" }
- Your version of artifactory (you can
curlit at$host/artifactory/api/system/version7.123.4 - Your version of terraform
Terraform v1.10.5
Expected behavior
A plan and apply to work after the resource is initially created.
Additional context
Workaround by forcibly remove it from the state, so that it does not poll it. Subsequent plan/apply operations succeed.
terraform state rm artifactory_repository_layout.pluginsMetadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working